PEP 8 fix
This commit is contained in:
parent
5a7ae0a5bd
commit
3bc2312338
15 changed files with 48 additions and 7 deletions
|
|
@ -1,3 +1,4 @@
|
|||
"common tools for inrocks backend"
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright(C) 2011 Julien Hebert
|
||||
|
|
@ -18,6 +19,7 @@
|
|||
|
||||
import re
|
||||
def id2url(_id):
|
||||
"return an url from an id"
|
||||
regexp2 = re.compile("(\w+).([0-9]+).(.*$)")
|
||||
match = regexp2.match(_id)
|
||||
if match:
|
||||
|
|
@ -28,4 +30,5 @@ def id2url(_id):
|
|||
raise ValueError("id doesn't match")
|
||||
|
||||
def url2id(url):
|
||||
"return an id from an url"
|
||||
return url
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue