🌐 AI搜索 & 代理 主页
Skip to content

Commit 1105355

Browse files
committed
Better Python 2 support
1 parent fd2fd01 commit 1105355

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderwall.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import urllib2 as urllib_request
1818
urllib_error = urllib_request
1919

20-
class CoderWall:
20+
class CoderWall(object):
2121

2222
"""
2323
Represents a CoderWall user and provides access to all of the user's data.
@@ -72,7 +72,7 @@ def __repr__(self):
7272
def __str__(self):
7373
return self.name + ' (' + self.username + '), ' + self.location + ', Endorsed ' + str(self.endorsements) + ' times: ' + str(self.badges)
7474

75-
class Badge:
75+
class Badge(object):
7676

7777
"""
7878
Represents a CoderWall badge and provides access to its attributes, such as

0 commit comments

Comments
 (0)