Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1:Update
python-html2text
remove_unittest2.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File remove_unittest2.patch of Package python-html2text
--- a/setup.py +++ b/setup.py @@ -18,14 +18,7 @@ try: except ImportError: read_md = read_md_open -requires_list = [] -try: - import unittest2 as unittest -except ImportError: - import unittest -else: - if sys.version_info <= (2, 6): - requires_list.append("unittest2") +import unittest class RunTests(Command): @@ -68,9 +61,6 @@ setup( 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.4', - 'Programming Language :: Python :: 2.5', - 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.0', @@ -85,7 +75,6 @@ setup( html2text=html2text.cli:main """, license='GNU GPL 3', - requires=requires_list, packages=find_packages(exclude=['test']), include_package_data=True, zip_safe=False, --- a/test/test_html2text.py +++ b/test/test_html2text.py @@ -7,10 +7,7 @@ import re import subprocess import sys -if sys.version_info[:2] < (2, 7): - import unittest2 as unittest -else: - import unittest +import unittest logging.basicConfig(format='%(levelname)s:%(funcName)s:%(message)s', --- a/test/test_memleak.py +++ b/test/test_memleak.py @@ -1,10 +1,7 @@ import html2text import logging import sys -if sys.version_info[:2] < (2, 7): - import unittest2 as unittest -else: - import unittest +import unittest logging.basicConfig(format='%(levelname)s:%(funcName)s:%(message)s',
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