Browse files

Removed counter from iteration, it was there for debug purpose, and now

that I fixed a bug, it is not required anymore
  • Loading branch information...
1 parent 5a5e889 commit c77cf63a9d63357300f2b5616e6534ed271ec5f0 @ik5 committed Feb 5, 2013
Showing with 0 additions and 3 deletions.
  1. +0 −3 convert_quotes.py
View
3 convert_quotes.py
@@ -77,7 +77,6 @@ def finalize(db_connection, logger=LOGGER) :
def iter_quotes(quotes_file = QUOTES_FILE, logger = LOGGER) :
"Walks over the quotes file, yields (quote, author) tuples for each quote"
- counter = 0
with open(quotes_file) as f:
quote = []
@@ -108,9 +107,7 @@ def iter_quotes(quotes_file = QUOTES_FILE, logger = LOGGER) :
# extract it for external handler
yield str_quote, author
quote = []
- counter += 1
- logger.debug('Total quotes found with iterator: %d', counter)
def handle_author_db(con, author, authors_ids, logger=LOGGER) :
"""work on the author side of the quote"""

0 comments on commit c77cf63

Please sign in to comment.