diff --git a/pattern/__init__.py b/pattern/__init__.py index 000e7417..58ef47e0 100644 --- a/pattern/__init__.py +++ b/pattern/__init__.py @@ -44,7 +44,7 @@ __author__ = "Tom De Smedt" __credits__ = "Tom De Smedt, Walter Daelemans" -__version__ = "2.6" +__version__ = "2.7_alpha" __copyright__ = "Copyright (c) 2010 University of Antwerp (BE)" __license__ = "BSD" diff --git a/setup.py b/setup.py index ff5fba60..43c5efcf 100644 --- a/setup.py +++ b/setup.py @@ -43,7 +43,7 @@ x.close() z.close() print(n) - print(hashlib.sha256(open(z.filename).read()).hexdigest()) + print(hashlib.sha256(open(z.filename, 'rb').read()).hexdigest()) sys.exit(0) #---------------------------------------------------------------------------------------------------