We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 065c473 commit f8b094fCopy full SHA for f8b094f
shorty.py
@@ -126,17 +126,11 @@ def expand(self, tinyurl):
126
# tinyurl.com
127
class Tinyurl(Service):
128
129
- @staticmethod
130
- def shrink(bigurl):
+ def shrink(self, bigurl):
131
resp = request('http://tinyurl.com/api-create.php', {'url': bigurl})
132
return resp.read()
133
134
135
- def expand(tinyurl):
136
- # TODO: implement
137
- return None
138
-
139
-tinyurl = Tinyurl
+tinyurl = Tinyurl()
140
141
# tr.im
142
class Trim(Service):
0 commit comments