Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8.2, 0.8.3, and 0.9

thgconfig: work around API changes in iniparse 0.3.1

For some reason, the new_namespace() function has been removed. It seems
the INIParser calls is only supposed to be used by ini.path.foo = url
methods. We may need to switch to iniparse's ConfigParser in the future.

Fixes #434

Changeset 1e770583c647

Parent 124c6ca80fd8

by Steve Borho

Changes to one file · Browse files at 1e770583c647 Showing diff from parent 124c6ca80fd8 Diff from another changeset...

 
952
953
954
955
 
 
 
 
956
957
958
 
979
980
981
982
983
984
985
986
 
952
953
954
 
955
956
957
958
959
960
961
 
982
983
984
 
 
985
986
987
@@ -952,7 +952,10 @@
  pass   return   if section not in list(self.ini): - self.ini.new_namespace(section) + if hasattr(self.ini, '_new_namespace'): + self.ini._new_namespace(section) + else: + self.ini.new_namespace(section)   self.ini[section][key] = newvalue   if not keephistory:   return @@ -979,8 +982,6 @@
  cpath = '.'.join(['paths', name])   self.record_new_value(cpath, path, False)   refreshlist.append(name) - if 'paths' not in list(self.ini): - self.ini.new_namespace('paths')   for name in list(self.ini.paths):   if name not in refreshlist:   del self.ini['paths'][name]