mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-29 22:28:08 -07:00
dev-python/argparse-manpage: patch out six dep
Closes: https://bugs.gentoo.org/811969 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
@@ -14,4 +14,8 @@ LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-remove-six-dep.patch"
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
--- a/examples/copr/copr_cli/main.py
|
||||
+++ b/examples/copr/copr_cli/main.py
|
||||
@@ -8,15 +8,11 @@ import argparse
|
||||
import sys
|
||||
import datetime
|
||||
import time
|
||||
-import six
|
||||
import simplejson
|
||||
from collections import defaultdict
|
||||
|
||||
import logging
|
||||
-if six.PY2:
|
||||
- from urlparse import urlparse
|
||||
-else:
|
||||
- from urllib.parse import urlparse
|
||||
+from urllib.parse import urlparse
|
||||
|
||||
if sys.version_info < (2, 7):
|
||||
class NullHandler(logging.Handler):
|
||||
Reference in New Issue
Block a user