Skip to content

Commit f8b094f

Browse files
committed
Make tinyurl service class non-static.
1 parent 065c473 commit f8b094f

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

shorty.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,17 +126,11 @@ def expand(self, tinyurl):
126126
# tinyurl.com
127127
class Tinyurl(Service):
128128

129-
@staticmethod
130-
def shrink(bigurl):
129+
def shrink(self, bigurl):
131130
resp = request('http://tinyurl.com/api-create.php', {'url': bigurl})
132131
return resp.read()
133132

134-
@staticmethod
135-
def expand(tinyurl):
136-
# TODO: implement
137-
return None
138-
139-
tinyurl = Tinyurl
133+
tinyurl = Tinyurl()
140134

141135
# tr.im
142136
class Trim(Service):

0 commit comments

Comments
 (0)