diff easyhg.py @ 458:c22cef015d73

Don't need to declare class members, it seems. One day I'll learn some Python
author Chris Cannam
date Wed, 29 Jun 2011 23:48:11 +0100
parents b09d0e6214d8
children ee06f9275c99
line wrap: on
line diff
--- 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)