diff options
| author | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-15 14:52:57 +0100 |
|---|---|---|
| committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-15 14:52:57 +0100 |
| commit | 62b387d773a2e50dd4a554de93fb199324ea7fc7 (patch) | |
| tree | 170a294e6b00e8f646502d3edc37cc13cf862ea1 /config.py | |
| parent | e0296d8ad72f27d8e7899d5ec38827081e6f47a0 (diff) | |
| download | pylint-git-62b387d773a2e50dd4a554de93fb199324ea7fc7.tar.gz | |
223 : run python2.x compatible fixers
Diffstat (limited to 'config.py')
| -rw-r--r-- | config.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -26,7 +26,7 @@ from os.path import exists, isfile, join, expanduser, abspath, dirname # pylint home is used to save old runs results ################################ USER_HOME = expanduser('~') -if os.environ.has_key('PYLINTHOME'): +if 'PYLINTHOME' in os.environ: PYLINT_HOME = os.environ['PYLINTHOME'] if USER_HOME == '~': USER_HOME = dirname(PYLINT_HOME) @@ -88,7 +88,7 @@ def find_pylintrc(): curdir = abspath(join(curdir, '..')) if isfile(join(curdir, 'pylintrc')): return join(curdir, 'pylintrc') - if os.environ.has_key('PYLINTRC') and exists(os.environ['PYLINTRC']): + if 'PYLINTRC' in os.environ and exists(os.environ['PYLINTRC']): pylintrc = os.environ['PYLINTRC'] else: user_home = expanduser('~') |
