Permalink
Browse files

more code cleanup

  • Loading branch information...
1 parent d7a41e2 commit f899fc314fe20d2183f3a1f5a587136fe282e9a3 @chuanshi chuanshi committed Sep 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ichiryu.py
View
@@ -50,7 +50,7 @@ def charstrip(string, max_length=False):
# identifying number (bigger is generally newer), returning that number
# as an int
def urlnumber(url):
- return int(url[url.rfind('/')+1:url.rfind('_')])
+ return int(url[url.rfind('/') + 1:url.rfind('_')])
OMP_REGEX = re.compile("http://ompl(oade)|dr\\.org/[a-zA-Z0-9]{5,8}($|[^a-zA-Z0-9])")
OMP_LINK = "http://omploader.org/vMmhmZA"

0 comments on commit f899fc3

Please sign in to comment.