8000 Merge pull request #812 from electrofelix/tidy-up · pythonthings/github3.py@a264cc1 · GitHub
[go: up one dir, main page]

Skip to content

Commit a264cc1

Browse files
authored
Merge pull request sigmavirus24#812 from electrofelix/tidy-up
Drop explicit return values for `Dict`.get()
2 parents ca631f8 + 1bbf620 commit a264cc1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

github3/repos/repo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2455,20 +2455,20 @@ def _update_attributes(self, repo):
24552455
self.has_wiki = repo['has_wiki']
24562456
self.homepage = repo['homepage']
24572457
self.language = repo['language']
2458-
self.original_license = repo.get('license', None)
2458+
self.original_license = repo.get('license')
24592459
if self.original_license is not None:
24602460
self.original_license = licenses.ShortLicense(
24612461
self.original_license, self
24622462
)
24632463
self.mirror_url = repo['mirror_url']
24642464
self.network_count = repo['network_count']
24652465
self.open_issues_count = repo['open_issues_count']
2466-
self.parent = repo.get('parent', None)
2466+
self.parent = repo.get('parent')
24672467
if self.parent is not None:
24682468
self.parent = ShortRepository(self.parent, self)
24692469
self.pushed_at = self._strptime(repo['pushed_at'])
24702470
self.size = repo['size']
2471-
self.source = repo.get('source', None)
2471+
self.source = repo.get('source')
24722472
if self.source is not None:
24732473
self.source = ShortRepository(self.source, self)
24742474
self.ssh_url = 38E7 repo['ssh_url']

0 commit comments

Comments
 (0)
0