Skip to content

Commit

Permalink
Decode requires positional args before Python27
Browse files Browse the repository at this point in the history
This allows compatibility with Python26.
  • Loading branch information
davidfischer committed Aug 10, 2013
1 parent a4ced9a commit 7089dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gdc2/archiveparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def parse(self):
for i, line in enumerate(gzip.GzipFile(fileobj=f)):
# There are occasionally records with invalid utf-8
# See: https://github.com/igrigorik/githubarchive.org/issues/25
line = line.decode('utf-8', errors='ignore')
line = line.decode('utf-8', 'ignore')
try:
yield self._flatten(json.loads(line))
except ValueError:
Expand Down

0 comments on commit 7089dff

Please sign in to comment.