Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
has_key has been deprecated in Python3, use simple in instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimgr committed Jul 3, 2014
1 parent 3483377 commit 2803fd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymake/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def run(self):
# general overview of "subprocess PATH semantics and portability".
oldpath = os.environ['PATH']
try:
if self.env is not None and self.env.has_key('PATH'):
if self.env is not None and 'PATH' in self.env:
os.environ['PATH'] = self.env['PATH']
p = subprocess.Popen(self.argv, executable=self.executable, shell=self.shell, env=self.env, cwd=self.cwd)
return p.wait()
Expand Down

0 comments on commit 2803fd4

Please sign in to comment.