Skip to content

Commit 361e8df

Browse files
committed
Minor style changes to __repr__ methods.
1 parent 9bfcb16 commit 361e8df

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

github2/organizations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def is_authenticated(self):
2727
return self.plan is not None
2828

2929
def __repr__(self):
30-
return "<Organization: %s>" % (self.login)
30+
return "<Organization: %s>" % self.login
3131

3232

3333
class Organizations(GithubCommand):

github2/repositories.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def _project(self):
2828
project = property(_project)
2929

3030
def __repr__(self):
31-
return "<Repository: %s>" % (self._project())
31+
return "<Repository: %s>" % self.project
3232

3333

3434
class Repositories(GithubCommand):

github2/users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def is_authenticated(self):
3333
return self.plan is not None
3434

3535
def __repr__(self):
36-
return "<User: %s>" % (self.login)
36+
return "<User: %s>" % self.login
3737

3838

3939
class Users(GithubCommand):

0 commit comments

Comments
 (0)