allow % in filenames

This commit is contained in:
2022-06-15 16:35:35 +03:00
parent f311b97d37
commit d68224091d
2 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
__version__ = "20220607.0" __version__ = "20220615.0"
def get_version(): def get_version():

View File

@@ -70,7 +70,7 @@ class Mirva:
def create_config(self): def create_config(self):
self.config = configparser.ConfigParser() self.config = configparser.RawConfigParser()
self.config.read(self.config_file) self.config.read(self.config_file)
config_changed = False config_changed = False
if not "SITE" in self.config: if not "SITE" in self.config:
@@ -128,7 +128,7 @@ class Mirva:
self.posts.append(post) self.posts.append(post)
def get_config(self): def get_config(self):
self.config = configparser.ConfigParser() self.config = configparser.RawConfigParser()
self.config.read(self.config_file) self.config.read(self.config_file)
def write_config(self): def write_config(self):
@@ -478,4 +478,4 @@ class SmartFormatter(HelpFormatter):
def _split_lines(self, help, width): def _split_lines(self, help, width):
if help.startswith("smart|"): if help.startswith("smart|"):
return help[6:].splitlines() return help[6:].splitlines()
return HelpFormatter._split_lines(self, help, width) return HelpFormatter._split_lines(self, help, width)