remove useless imports
This commit is contained in:
parent
b8c3501ff5
commit
8de2da49ac
3 changed files with 5 additions and 15 deletions
|
|
@ -19,11 +19,6 @@
|
|||
|
||||
from __future__ import with_statement
|
||||
|
||||
try:
|
||||
import simplejson as json
|
||||
except ImportError:
|
||||
import json
|
||||
|
||||
import re
|
||||
|
||||
from weboob.capabilities.gallery import ICapGallery, BaseGallery, BaseImage
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ class TopicPage(PhpBBPage):
|
|||
|
||||
try:
|
||||
url = self.parser.select(self.document.getroot(), 'h2 a', 1).attrib['href']
|
||||
except BrokenPageError, e:
|
||||
except BrokenPageError:
|
||||
url = self.url
|
||||
v = urlsplit(url)
|
||||
args = parse_qs(v.query)
|
||||
|
|
|
|||
|
|
@ -19,11 +19,6 @@
|
|||
|
||||
from __future__ import with_statement
|
||||
|
||||
try:
|
||||
import simplejson as json
|
||||
except ImportError:
|
||||
import json
|
||||
|
||||
import re
|
||||
|
||||
from weboob.capabilities.gallery import ICapGallery, BaseGallery, BaseImage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue