[Python-modules-commits] [python-django-ordered-model] 03/07: Use io.open for Python3 support.

Michael Fladischer fladi at moszumanska.debian.org
Fri May 12 19:30:41 UTC 2017


This is an automated email from the git hooks/post-receive script.

fladi pushed a commit to branch experimental
in repository python-django-ordered-model.

commit 4f03b50549e46412ea5b3b4092f405212465df20
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Fri May 12 20:47:00 2017 +0200

    Use io.open for Python3 support.
---
 setup.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index b99e2a0..debefa3 100644
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,9 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
+import io
 from setuptools import setup
 
-with open('requirements.txt') as f:
+with io.open('requirements.txt', encoding='utf-8') as f:
     requires = f.read().splitlines()
 
 setup(

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-django-ordered-model.git



More information about the Python-modules-commits mailing list