# HG changeset patch # User Chris Cannam # Date 1309387691 -3600 # Node ID c22cef015d73f61c58f2b22c1321c54abe654ebd # Parent b09d0e6214d834bba192565af0aa98c96983bad6 Don't need to declare class members, it seems. One day I'll learn some Python diff -r b09d0e6214d8 -r c22cef015d73 easyhg.py --- a/easyhg.py Wed Jun 29 16:40:14 2011 +0100 +++ b/easyhg.py Wed Jun 29 23:48:11 2011 +0100 @@ -64,22 +64,6 @@ class EasyHgAuthStore(object): - ui = None - - remote_url = '' - - use_auth_file = False - - auth_config = None - auth_file = '' - auth_key = '' - auth_cipher = None - - user = '' - passwd = '' - - remember = False - def __init__(self, ui, url, user, passwd): self.ui = ui @@ -94,6 +78,10 @@ self.use_auth_file = (easyhg_authfile_imports_ok and self.auth_key and self.auth_file) + self.auth_config = None + self.auth_cipher = None + self.remember = False + if self.use_auth_file: self.auth_cipher = AES.new(self.auth_key, AES.MODE_CBC) self.auth_file = os.path.expanduser(self.auth_file)