remove has_key (not working in python3)
This commit is contained in:
parent
882316c298
commit
cc9fff9840
19 changed files with 182 additions and 183 deletions
|
|
@ -1078,7 +1078,7 @@ if __name__ == "__main__":
|
|||
quit("Error: Unable to log in. Bad credentials?")
|
||||
except xmlrpclib.ProtocolError:
|
||||
quit("Error: Unable to connect to server %s" % (options.server))
|
||||
elif sys.modules.has_key('krbV'):
|
||||
elif 'krbV' in sys.modules:
|
||||
krb_principal = options.krb_principal
|
||||
if krb_principal is None:
|
||||
krb_principal = options.host_principal_format % socket.getfqdn()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue