diff --git a/bin/cc-cli b/bin/cc-cli index 3983de010f10919eb62b5cea0849b6d3cac03bdb..199ce32077ad9c0ee0f17076555c7ee5b8a3d0dc 100755 --- a/bin/cc-cli +++ b/bin/cc-cli @@ -31,7 +31,7 @@ settings = { def load_config_file(config, filename, section): '''Update a dict with param from an ini file ''' if os.access(filename, os.R_OK): - fparser = ConfigParser.SafeConfigParser() + fparser = ConfigParser.RawConfigParser() fparser.read(filename) if fparser.has_section(section): config.update(fparser.items(section)) diff --git a/cccli/command.py b/cccli/command.py index b332e76c2c34806fc55e040869bc1c99cbf56892..b29b9392c6dcd2ad9cdfa84b574160db949c4d73 100644 --- a/cccli/command.py +++ b/cccli/command.py @@ -476,7 +476,7 @@ class Alias(dict): def load(self, filename): '''load alias from file''' if os.access(filename, os.R_OK): - fparser = ConfigParser.SafeConfigParser() + fparser = ConfigParser.RawConfigParser() fparser.read(filename) if fparser.has_section("alias"): self.clear() @@ -485,7 +485,7 @@ class Alias(dict): def save(self, filename): '''save alias on file''' if os.access(filename, os.R_OK or os.W_OK): - fparser = ConfigParser.SafeConfigParser() + fparser = ConfigParser.RawConfigParser() fparser.read(filename) fparser.remove_section("alias") fparser.add_section("alias")