summaryrefslogtreecommitdiffstats
path: root/isys/isys.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-03-22 17:01:54 +0000
committerChris Lumens <clumens@redhat.com>2006-03-22 17:01:54 +0000
commit1b64b07dc2448ce216dac295dbd1be4b4b8e587a (patch)
treebb1a9b97c8a395cc7172da91c76e6b9cc4ae0223 /isys/isys.py
parent647b772bb9e0f6b1a38043940c7fcc004c413d9d (diff)
downloadanaconda-1b64b07dc2448ce216dac295dbd1be4b4b8e587a.tar.gz
anaconda-1b64b07dc2448ce216dac295dbd1be4b4b8e587a.tar.xz
anaconda-1b64b07dc2448ce216dac295dbd1be4b4b8e587a.zip
isys.getopt is deprecated. Use optparse, or suffer the consequences.
Diffstat (limited to 'isys/isys.py')
-rw-r--r--isys/isys.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/isys/isys.py b/isys/isys.py
index b1b098a6d..156d45a4f 100644
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -23,6 +23,7 @@ import posix
import sys
import kudzu
import iutil
+import warnings
import logging
log = logging.getLogger("anaconda")
@@ -459,6 +460,8 @@ def parseArgv(str):
return _isys.poptParseArgv(str)
def getopt(*args):
+ warnings.warn("isys.getopt is deprecated. Use optparse instead.",
+ DeprecationWarning, stacklevel=2)
return apply(_isys.getopt, args)
def doProbeBiosDisks():