summaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-11-15 14:52:57 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-11-15 14:52:57 +0100
commit62b387d773a2e50dd4a554de93fb199324ea7fc7 (patch)
tree170a294e6b00e8f646502d3edc37cc13cf862ea1 /config.py
parente0296d8ad72f27d8e7899d5ec38827081e6f47a0 (diff)
downloadpylint-git-62b387d773a2e50dd4a554de93fb199324ea7fc7.tar.gz
223 : run python2.x compatible fixers
Diffstat (limited to 'config.py')
-rw-r--r--config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.py b/config.py
index 939ace1d5..391cca07e 100644
--- a/config.py
+++ b/config.py
@@ -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('~')