Kaydet (Commit) dadc3d8b authored tarafından Berker Peksag's avatar Berker Peksag

Fix TypeError in setuputils.

The codecs.open function always return bytes object.
üst a4129b39
...@@ -5,7 +5,7 @@ import re ...@@ -5,7 +5,7 @@ import re
def read(*parts): def read(*parts):
file_path = os.path.join(os.path.dirname(__file__), *parts) file_path = os.path.join(os.path.dirname(__file__), *parts)
return codecs.open(file_path).read() return codecs.open(file_path, 'r').read()
def find_version(*parts): def find_version(*parts):
...@@ -15,4 +15,3 @@ def find_version(*parts): ...@@ -15,4 +15,3 @@ def find_version(*parts):
if version_match: if version_match:
return version_match.group(1) return version_match.group(1)
raise RuntimeError('Unable to find version string.') raise RuntimeError('Unable to find version string.')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment