Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:GA
python-httpretty
avoid_unicode_error.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File avoid_unicode_error.patch of Package python-httpretty
--- setup.py.orig +++ setup.py @@ -27,6 +27,7 @@ import ast import os import re +import sys from setuptools import setup, find_packages @@ -73,10 +74,12 @@ def parse_requirements(path): return pkgs, links - -local_file = lambda *f: \ - open(os.path.join(os.path.dirname(__file__), *f)).read() - +if int(sys.version[0]) < 3: + local_file = lambda *f: \ + open(os.path.join(os.path.dirname(__file__), *f)).read() +else: + local_file = lambda *f: \ + open(os.path.join(os.path.dirname(__file__), *f), encoding='utf-8').read() install_requires, dependency_links = \ parse_requirements('requirements.txt')
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor