Pārlūkot izejas kodu

specify config file delimiter so it doesn't barf on windows paths

tags/v0.4
Marco pirms 8 gadiem
vecāks
revīzija
88cddb1d4a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      gitup/config.py

+ 1
- 1
gitup/config.py Parādīt failu

@@ -39,7 +39,7 @@ def _migrate_old_config_path():
def _load_config_file(config_path=None): def _load_config_file(config_path=None):
"""Read the config file and return a SafeConfigParser() object.""" """Read the config file and return a SafeConfigParser() object."""
_migrate_old_config_path() _migrate_old_config_path()
config = configparser.SafeConfigParser()
config = configparser.SafeConfigParser(delimiters='=')
# Don't lowercase option names, because we are storing paths there: # Don't lowercase option names, because we are storing paths there:
config.optionxform = lambda opt: opt config.optionxform = lambda opt: opt
config.read(config_path or get_default_config_path()) config.read(config_path or get_default_config_path())


Notiek ielāde…
Atcelt
Saglabāt