Skip to content

Commit

Permalink
Merge pull request john-kurkowski#14 from oberstet/master. Fixes john…
Browse files Browse the repository at this point in the history
…-kurkowski#13.

open cache file in binary mode, extend gitignore, bump version
  • Loading branch information
john-kurkowski committed Jul 25, 2012
2 parents 2500535 + c1d9ed6 commit daa8cdc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
*.pyc
*.tld_set
build
dist
tldextract_app/tldextract
tldextract_app/web
tldextract.egg-info
3 changes: 1 addition & 2 deletions tldextract/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from tldextract import extract, TLDExtract

__version__ = "1.1"

__version__ = "1.1.1"
2 changes: 1 addition & 1 deletion tldextract/tldextract.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def _get_tld_extractor(self):
print >> sys.stderr, line.encode('utf-8')

try:
with open(cached_file, 'w') as f:
with open(cached_file, 'wb') as f:
pickle.dump(tlds, f)
except IOError, e:
LOG.warn("unable to cache TLDs in file %s: %s", cached_file, e)
Expand Down

0 comments on commit daa8cdc

Please sign in to comment.