Permalink
Browse files

2 small pep 8 fixes

  • Loading branch information...
1 parent e5c8c08 commit 3004a010cc2c2c2777e6f6b59c956c89cd602025 @coh2 coh2 committed Feb 18, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −1 pastycake/gather.py
  2. +2 −1 pastycake/sqlite_backend.py
View
@@ -36,7 +36,7 @@ def _fetch_one(generator, path, keywords, storage, store_match):
L.send('match', generator, storage, match=match.group(),
url=full_url, data=data)
if store_match:
- storage.save_url(full_url, [(name, text),])
+ storage.save_url(full_url, [(name, text), ])
# stop after the first match
break
if not match and store_match:
@@ -66,7 +66,8 @@ def _save_matcher(self, matchname):
def _save_urlmatch(self, urlid, matchid, text):
curs = self._con.cursor()
- curs.execute('''INSERT OR IGNORE INTO url_matches(url, matcher, matched)
+ curs.execute('''INSERT OR IGNORE
+ INTO url_matches(url, matcher, matched)
VALUES(?, ?, ?)''', (urlid, matchid, text))
self._con.commit()

0 comments on commit 3004a01

Please sign in to comment.