From 54f0222547b1e92cd018ef132307a6f793dc9505 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 1 Jun 2002 14:18:47 +0000 Subject: SF 563203. Replaced 'has_key()' with 'in'. --- Lib/netrc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/netrc.py') diff --git a/Lib/netrc.py b/Lib/netrc.py index b6907d9579..9ce7efb060 100644 --- a/Lib/netrc.py +++ b/Lib/netrc.py @@ -84,9 +84,9 @@ class netrc: def authenticators(self, host): """Return a (user, account, password) tuple for given host.""" - if self.hosts.has_key(host): + if host in self.hosts: return self.hosts[host] - elif self.hosts.has_key('default'): + elif 'default' in self.hosts: return self.hosts['default'] else: return None -- cgit v1.2.1