PEP8: fix E265: block comment should start with '# '
[nivanova/samba-autobuild/.git] / python / samba / gp_sec_ext.py
index db15c0986dd6e3a6f7e870e2ffddd5021cbf1c53..79c6abaea224f1d8e38b8b3508fdbfc97a4e43ea 100644 (file)
@@ -20,10 +20,10 @@ from samba.gpclass import gp_ext_setter, gp_inf_ext
 
 class inf_to_kdc_tdb(gp_ext_setter):
     def mins_to_hours(self):
-        return '%d' % (int(self.val)/60)
+        return '%d' % (int(self.val) / 60)
 
     def days_to_hours(self):
-        return '%d' % (int(self.val)*24)
+        return '%d' % (int(self.val) * 24)
 
     def set_kdc_tdb(self, val):
         old_val = self.gp_db.gpostore.get(self.attribute)
@@ -37,7 +37,7 @@ class inf_to_kdc_tdb(gp_ext_setter):
             self.gp_db.delete(str(self), self.attribute)
 
     def mapper(self):
-        return { 'kdc:user_ticket_lifetime': (self.set_kdc_tdb, self.explicit),
+        return {'kdc:user_ticket_lifetime': (self.set_kdc_tdb, self.explicit),
                  'kdc:service_ticket_lifetime': (self.set_kdc_tdb,
                                                  self.mins_to_hours),
                  'kdc:renewal_lifetime': (self.set_kdc_tdb,
@@ -71,7 +71,7 @@ class inf_to_ldb(gp_ext_setter):
         old_val = self.ldb.get_minPwdLength()
         self.logger.info(
             'KDC Minimum Password length was changed from %s to %s' \
-             % (old_val, val))
+            % (old_val, val))
         self.gp_db.store(str(self), self.attribute, str(old_val))
         self.ldb.set_minPwdLength(val)
 
@@ -93,12 +93,12 @@ class inf_to_ldb(gp_ext_setter):
 
     def mapper(self):
         '''ldap value : samba setter'''
-        return { "minPwdAge" : (self.ch_minPwdAge, self.days2rel_nttime),
-                 "maxPwdAge" : (self.ch_maxPwdAge, self.days2rel_nttime),
+        return {"minPwdAge": (self.ch_minPwdAge, self.days2rel_nttime),
+                 "maxPwdAge": (self.ch_maxPwdAge, self.days2rel_nttime),
                  # Could be none, but I like the method assignment in
                  # update_samba
-                 "minPwdLength" : (self.ch_minPwdLength, self.explicit),
-                 "pwdProperties" : (self.ch_pwdProperties, self.explicit),
+                 "minPwdLength": (self.ch_minPwdLength, self.explicit),
+                 "pwdProperties": (self.ch_pwdProperties, self.explicit),
 
                  }