PEP 8 fix

This commit is contained in:
Juke 2011-02-22 01:06:57 +01:00
commit 3bc2312338
15 changed files with 48 additions and 7 deletions

View file

@ -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