Skip to content
Browse files

Merge branch 'master' of github.com:jermnelson/py3-marc-indexer

  • Loading branch information...
2 parents 07fb38c + 68715a2 commit f4e4a6241b3486a0475f92baffe67caa637ee1c3 @jermnelson committed May 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 marc_sharder.py
View
4 marc_sharder.py
@@ -16,8 +16,8 @@ def shard(shard_size,input_marc_filename):
marc_reader = pymarc.MARCReader(open(input_marc_filename,'rb'),
utf8_handling='ignore')
count = 0
- output_file = open('shard-%sk-%s.mrc' % (count,shard_size+count),'wb')
- error_log = open('errors.log','wb')
+ output_file = open('shard-%sk-%s.mrc' % (count,shard_size+count),'w')
+ error_log = open('errors.log','w')
output_recs = []
print("Started sharding %s at %s" % (input_marc_filename,datetime.datetime.today().isoformat()))
while 1:

0 comments on commit f4e4a62

Please sign in to comment.
Something went wrong with that request. Please try again.