Skip to content

Commit

Permalink
A bunch of minor cleanups for PEP8 compliance; no functionality
Browse files Browse the repository at this point in the history
changes.
  • Loading branch information
Drew Hess committed Oct 13, 2008
1 parent e1d81c8 commit 109fc66
Show file tree
Hide file tree
Showing 17 changed files with 296 additions and 277 deletions.
22 changes: 11 additions & 11 deletions lobbyists/benchmark.py
Expand Up @@ -22,6 +22,7 @@
import lobbyists
import time


def timed_func(func):
def timer(*args):
t1 = time.clock()
Expand All @@ -48,14 +49,13 @@ def time_parse(doc):
return timed_parser(doc)


skippers = {
'registrant': skip_import,
'client': skip_import,
'lobbyists': skip_import_list,
'govt_entities': skip_import_list,
'issues': skip_import_list,
'affiliated_orgs': skip_import_list
}
skippers = {'registrant': skip_import,
'client': skip_import,
'lobbyists': skip_import_list,
'govt_entities': skip_import_list,
'issues': skip_import_list,
'affiliated_orgs': skip_import_list}


def time_import(filings, cur, skiplist=[]):
for key in skiplist:
Expand All @@ -69,7 +69,7 @@ def main(argv=None):
import sys
import optparse
import os.path

if argv is None:
argv = sys.argv
usage = """%prog [OPTIONS] db doc.xml
Expand All @@ -90,8 +90,8 @@ def main(argv=None):
'to loading first document')
parser.add_option('-c', '--commit-database', action='store_true',
dest='commit',
help='commit the database after importing the document ' \
'(default is not to commit)')
help='commit the database after importing the ' \
'document (default is not to commit)')
parser.add_option('-s', '--skip-import', action='append',
default=[],
dest='skip_import',
Expand Down

0 comments on commit 109fc66

Please sign in to comment.