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/glsa-check
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/glsa-check')
-rwxr-xr-xbin/glsa-check4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/glsa-check b/bin/glsa-check
index 94dea7398..84481d849 100755
--- a/bin/glsa-check
+++ b/bin/glsa-check
@@ -4,6 +4,7 @@
from __future__ import print_function
+import argparse
import sys
import codecs
@@ -14,7 +15,6 @@ import portage
portage._internal_caller = True
from portage import os
from portage.output import green, red, nocolor, white
-from portage.util._argparse import ArgumentParser
__program__ = "glsa-check"
__author__ = "Marius Mauch <genone@gentoo.org>"
@@ -24,7 +24,7 @@ __version__ = "1.0"
epilog = "glsa-list can contain an arbitrary number of GLSA ids," \
" filenames containing GLSAs or the special identifiers" \
" 'all', 'new' and 'affected'"
-parser = ArgumentParser(usage=__program__ + " <option> [glsa-list]",
+parser = argparse.ArgumentParser(usage=__program__ + " <option> [glsa-list]",
epilog=epilog)
modes = parser.add_argument_group("Modes")