aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-10-29 23:56:44 -0400
committerMike Frysinger <vapier@gentoo.org>2015-10-29 23:56:44 -0400
commit83512ad3db1679023e1d4ea42b4a0af327085368 (patch)
treef1dbb260c4a1797efea9f8ce7bc2cee0182b4749 /bin/xpak-helper.py
parentchpathtool: drop optparse compat logic (diff)
downloadportage-83512ad3db1679023e1d4ea42b4a0af327085368.tar.gz
portage-83512ad3db1679023e1d4ea42b4a0af327085368.tar.bz2
portage-83512ad3db1679023e1d4ea42b4a0af327085368.zip
_argparse: punt the module
Since we don't support python 2.6 anymore, there's no need to wrap argparse, so switch all the users to the standard library for it.
Diffstat (limited to 'bin/xpak-helper.py')
-rwxr-xr-xbin/xpak-helper.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/xpak-helper.py b/bin/xpak-helper.py
index c4391cde7..8c965ecda 100755
--- a/bin/xpak-helper.py
+++ b/bin/xpak-helper.py
@@ -2,11 +2,11 @@
# Copyright 2009-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+import argparse
import sys
import portage
portage._internal_caller = True
from portage import os
-from portage.util._argparse import ArgumentParser
def command_recompose(args):
@@ -46,7 +46,7 @@ def main(argv):
usage = "usage: %s COMMAND [args]" % \
os.path.basename(argv[0])
- parser = ArgumentParser(description=description, usage=usage)
+ parser = argparse.ArgumentParser(description=description, usage=usage)
options, args = parser.parse_known_args(argv[1:])
if not args: