comparison mercurial/httprepo.py @ 5915:d0576d065993

Prefer i in d over d.has_key(i)
author Christian Ebert <blacktrash@gmx.net>
date Sun, 20 Jan 2008 14:39:25 +0100
parents d5b9c74c910e
children c301f15c965a
comparison
equal deleted inserted replaced
5914:8e7796a990c5 5915:d0576d065993
245 245
246 # urllib2 takes proxy values from the environment and those 246 # urllib2 takes proxy values from the environment and those
247 # will take precedence if found, so drop them 247 # will take precedence if found, so drop them
248 for env in ["HTTP_PROXY", "http_proxy", "no_proxy"]: 248 for env in ["HTTP_PROXY", "http_proxy", "no_proxy"]:
249 try: 249 try:
250 if os.environ.has_key(env): 250 if env in os.environ:
251 del os.environ[env] 251 del os.environ[env]
252 except OSError: 252 except OSError:
253 pass 253 pass
254 254
255 passmgr = passwordmgr(ui) 255 passmgr = passwordmgr(ui)