diff options
author | Uwe Klotz <uwe_klotz@web.de> | 2017-11-14 23:39:19 +0100 |
---|---|---|
committer | Uwe Klotz <uwe_klotz@web.de> | 2017-11-16 07:25:36 +0100 |
commit | e24641498322d695e2aab3016a65744fe567b8c2 (patch) | |
tree | c65776f9a242faae1c25143c67a4e57d9914943d /build/mixxx.py | |
parent | 7a55c301f87c8dfb2118686bd6e9b88899016f9a (diff) |
Delete deprecated usage of has_key()
Diffstat (limited to 'build/mixxx.py')
-rw-r--r-- | build/mixxx.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build/mixxx.py b/build/mixxx.py index 0e8850ac00..e4e1a173c5 100644 --- a/build/mixxx.py +++ b/build/mixxx.py @@ -395,11 +395,11 @@ class MixxxBuild(object): # Allow installation directories to be specified. prefix = Script.ARGUMENTS.get('prefix', '/usr/local') - if os.environ.has_key('LIBDIR'): + if 'LIBDIR' in os.environ: self.env['LIBDIR'] = os.path.relpath(os.environ['LIBDIR'], prefix) - if os.environ.has_key('BINDIR'): + if 'BINDIR' in os.environ: self.env['BINDIR'] = os.path.relpath(os.environ['BINDIR'], prefix) - if os.environ.has_key('SHAREDIR'): + if 'SHAREDIR' in os.environ: self.env['SHAREDIR'] = \ os.path.relpath(os.environ['SHAREDIR'], prefix) |