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 | ee9367d5716ab89888b89c45383ebc26b44ee86a (patch) | |
| tree | 7adfd4a7b83db568742a9d26bf261d74a39ff5f1 /config.py | |
| parent | 3c8ccc78ec536fca1c64a9fed36c3445b1e7d1eb (diff) | |
| download | pylint-ee9367d5716ab89888b89c45383ebc26b44ee86a.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('~') |
