Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2014-08-27 21:35:53,922 - DEBUG: company_website=http://google.com
- 2014-08-27 21:35:53,923 - DEBUG: company_revenue=80000000000000
- 2014-08-27 21:35:53,923 - DEBUG: company_start_year=2004
- 2014-08-27 21:35:53,923 - DEBUG: account_description=The company is never clearly defined in Road Runner cartoons but appears to be a conglomerate which produces every product type imaginable, no matter how elaborate or extravagant - most of which never work as desired or expected. In the Road Runner cartoon Beep, Beep, it was referred to as "Acme Rocket-Powered Products
- 2014-08-27 21:35:53,924 - DEBUG: company_name=Acme Inc
- 2014-08-27 21:35:53,925 - DEBUG: company_email=Inc."" based in Fairfield
- with open(csvfile, 'rU') as contactsfile:
- # sniff for dialect of csvfile so we can automatically determine
- # what delimiters to use
- try:
- dialect = csv.Sniffer().sniff(contactsfile.read(2048))
- except:
- dialect = 'excel'
- get_total_jobs(contactsfile, dialect)
- contacts = csv.DictReader(contactsfile, dialect=dialect, skipinitialspace=True, quoting=csv.QUOTE_MINIMAL)
- # Start reading the rows
- for row in contacts:
- process_job()
- for key, value in row.iteritems():
- logging.debug("{}={}".format(key,value))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement