aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-07-17 15:37:07 +0200
committerMichał Górny <mgorny@gentoo.org>2020-07-18 04:33:08 +0200
commit39044784ba1f5ce38dd1ba8310a35689fbd30291 (patch)
treeaf9bf9828ecee724244d65db53bfb37c5e09c2c1 /bin
parentCorrect inverted py3 json indentation (diff)
downloadportage-39044784ba1f5ce38dd1ba8310a35689fbd30291.tar.gz
portage-39044784ba1f5ce38dd1ba8310a35689fbd30291.tar.bz2
portage-39044784ba1f5ce38dd1ba8310a35689fbd30291.zip
Remove py<3.4 import compatibility
Closes: https://github.com/gentoo/portage/pull/577 Reviewed-by: Zac Medico <zmedico@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/binhost-snapshot5
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/binhost-snapshot b/bin/binhost-snapshot
index d677e7568..afab23592 100755
--- a/bin/binhost-snapshot
+++ b/bin/binhost-snapshot
@@ -8,10 +8,7 @@ import os
import sys
import textwrap
-try:
- from urllib.parse import urlparse
-except ImportError:
- from urlparse import urlparse
+from urllib.parse import urlparse
from os import path as osp
if osp.isfile(osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), ".portage_not_installed")):