[Python-modules-commits] [python-future] 01/08: Do not ship a configparser module
Vincent Bernat
bernat at moszumanska.debian.org
Tue May 3 20:09:58 UTC 2016
This is an automated email from the git hooks/post-receive script.
bernat pushed a commit to branch master
in repository python-future.
commit 38de32f2cbe47d5e7017b513e6e9ff94029ae548
Author: Vincent Bernat <bernat at debian.org>
Date: Tue May 3 21:51:13 2016 +0200
Do not ship a configparser module
This module is already backported in python-configparser package.
Bug-Debian: https://bugs.debian.org/822157
Bug: https://github.com/PythonCharmers/python-future/issues/118
Patch-Name: removes-configparser-module.patch
---
setup.py | 2 --
src/configparser/__init__.py | 13 -------------
tests/test_future/test_standard_library.py | 3 ---
3 files changed, 18 deletions(-)
diff --git a/setup.py b/setup.py
index 7c81a09..1b2380c 100755
--- a/setup.py
+++ b/setup.py
@@ -58,7 +58,6 @@ PACKAGES = ["future",
if sys.version_info[:2] < (3, 0):
PACKAGES += [
"builtins",
- "configparser",
"copyreg",
"html",
"http",
@@ -134,7 +133,6 @@ try:
'_markupbase',
'_thread',
'builtins',
- 'configparser',
'copyreg',
'html',
'http',
diff --git a/src/configparser/__init__.py b/src/configparser/__init__.py
deleted file mode 100644
index 3642c5e..0000000
--- a/src/configparser/__init__.py
+++ /dev/null
@@ -1,13 +0,0 @@
-from __future__ import absolute_import
-import sys
-
-if sys.version_info[0] < 3:
- from ConfigParser import *
- try:
- from ConfigParser import (_Chainmap, Error, InterpolationMissingOptionError)
- except ImportError:
- pass
-else:
- raise ImportError('This package should not be accessible on Python 3. '
- 'Either you are trying to run from the python-future src folder '
- 'or your installation of python-future is corrupted.')
diff --git a/tests/test_future/test_standard_library.py b/tests/test_future/test_standard_library.py
index 399d587..62b40a2 100644
--- a/tests/test_future/test_standard_library.py
+++ b/tests/test_future/test_standard_library.py
@@ -271,9 +271,6 @@ class TestStandardLibraryReorganization(CodeHandler):
with self.assertRaises(CalledProcessError):
output = self._run_test_script('importme1.py')
- def test_configparser(self):
- import configparser
-
def test_copyreg(self):
import copyreg
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-future.git
More information about the Python-modules-commits
mailing list