Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Commit

Permalink
fix typo...
Browse files Browse the repository at this point in the history
  • Loading branch information
iambus committed Mar 19, 2013
1 parent 08f72f5 commit 4333e08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lixian_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def xunlei_url_decode(url):
assert url.startswith('AA') and url.endswith('ZZ')
return url[2:-2]

def flashget_url_decode(encode):
def flashget_url_encode(url):
return 'Flashget://'+base64.encodestring('[FLASHGET]'+url+'[FLASHGET]').replace('\n', '')

def flashget_url_decode(url):
Expand Down Expand Up @@ -63,7 +63,6 @@ def escape_str(m):
return re.sub(r'.', escape_unicode, url)
else:
return re.sub(r'.', escape_str, url)
return url

def unquote_url(x):
x = urllib.unquote(x)
Expand Down

0 comments on commit 4333e08

Please sign in to comment.