From 033b222ce311bcdfd7b9435eb3113d475ee1624e Mon Sep 17 00:00:00 2001 From: ScreenDriver Date: Mon, 4 Aug 2014 17:09:27 +0200 Subject: [PATCH 1/2] Added encoding to open file --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c95a2f2..2f88bd6 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ def read(fname): - return open(os.path.join(os.path.dirname(__file__), fname)).read() + return open(os.path.join(os.path.dirname(__file__), fname), encoding='utf-8').read() setup( name="microsofttranslator", From 02a2c74bfc529e07d3a9ebffba8968565bb38c09 Mon Sep 17 00:00:00 2001 From: ScreenDriver Date: Mon, 4 Aug 2014 17:29:37 +0200 Subject: [PATCH 2/2] Fixed to long line --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2f88bd6..3322d9b 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,8 @@ def read(fname): - return open(os.path.join(os.path.dirname(__file__), fname), encoding='utf-8').read() + f = open(os.path.join(os.path.dirname(__file__), fname), encoding='utf-8') + return f.read() setup( name="microsofttranslator",