diff options
author | Guido van Rossum <guido@python.org> | 2006-08-19 16:53:45 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2006-08-19 16:53:45 (GMT) |
commit | e014a13f03abc0111591565fc0b669dd1cff0958 (patch) | |
tree | e3541605572ea5dca2894f7062033397fbe4bf91 /Lib/lib-tk/FixTk.py | |
parent | 6e23e3796d8b1794279c84757e253aba53c9144f (diff) | |
download | cpython-e014a13f03abc0111591565fc0b669dd1cff0958.zip cpython-e014a13f03abc0111591565fc0b669dd1cff0958.tar.gz cpython-e014a13f03abc0111591565fc0b669dd1cff0958.tar.bz2 |
Couple more has_keys() going...
Diffstat (limited to 'Lib/lib-tk/FixTk.py')
-rw-r--r-- | Lib/lib-tk/FixTk.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/lib-tk/FixTk.py b/Lib/lib-tk/FixTk.py index a7801a2..0726a51 100644 --- a/Lib/lib-tk/FixTk.py +++ b/Lib/lib-tk/FixTk.py @@ -13,7 +13,7 @@ import sys, os prefix = os.path.join(sys.prefix,"tcl") # if this does not exist, no further search is needed if os.path.exists(prefix): - if not os.environ.has_key("TCL_LIBRARY"): + if "TCL_LIBRARY" not in os.environ: for name in os.listdir(prefix): if name.startswith("tcl"): tcldir = os.path.join(prefix,name) @@ -23,13 +23,13 @@ if os.path.exists(prefix): # as Tcl import _tkinter ver = str(_tkinter.TCL_VERSION) - if not os.environ.has_key("TK_LIBRARY"): + if "TK_LIBRARY" not in os.environ: v = os.path.join(prefix, 'tk'+ver) if os.path.exists(os.path.join(v, "tclIndex")): os.environ['TK_LIBRARY'] = v # We don't know the Tix version, so we must search the entire # directory - if not os.environ.has_key("TIX_LIBRARY"): + if "TIX_LIBRARY" not in os.environ: for name in os.listdir(prefix): if name.startswith("tix"): tixdir = os.path.join(prefix,name) |