Blame SOURCES/crudini-el6.patch

rdobuilder 2e3a94
diff --git a/crudini.py b/crudini.py
rdobuilder 2e3a94
index e931143..1699adc 100755
rdobuilder 2e3a94
--- a/crudini.py
rdobuilder 2e3a94
+++ b/crudini.py
rdobuilder 2e3a94
@@ -197,9 +197,6 @@ class LockedFile(FileLock):
rdobuilder 2e3a94
 class CrudiniConfigParser(iniparse.RawConfigParser):
rdobuilder 2e3a94
     def __init__(self, preserve_case=False):
rdobuilder 2e3a94
         iniparse.RawConfigParser.__init__(self)
rdobuilder 2e3a94
-        # Without the following we can't have params starting with "rem"!
rdobuilder 2e3a94
-        # We ignore lines starting with '%' which mercurial uses to include
rdobuilder 2e3a94
-        iniparse.change_comment_syntax('%;#', allow_rem=False)
rdobuilder 2e3a94
         if preserve_case:
rdobuilder 2e3a94
             self.optionxform = str
rdobuilder 2e3a94
 
rdobuilder 2e3a94
diff --git a/tests/test.sh b/tests/test.sh
rdobuilder 2e3a94
index 90cc9a8..d629141 100755
rdobuilder 2e3a94
--- a/tests/test.sh
rdobuilder 2e3a94
+++ b/tests/test.sh
rdobuilder 2e3a94
@@ -217,13 +217,6 @@ printf '%s\n' '#comment' '[section1]' > test.ini
rdobuilder 2e3a94
 test "$(crudini --get test.ini)" = 'section1' || fail
rdobuilder 2e3a94
 ok
rdobuilder 2e3a94
 
rdobuilder 2e3a94
-# Ensure we handle comments correctly
rdobuilder 2e3a94
-printf '%s\n' '[DEFAULT]' '#c1' ';c2' '%inc1' > test.ini
rdobuilder 2e3a94
-test "$(crudini --get test.ini)" = '' || fail
rdobuilder 2e3a94
-printf '%s\n' '[section1]' 'remote=1' > test.ini
rdobuilder 2e3a94
-test "$(crudini --get test.ini 'section1')" = 'remote' || fail
rdobuilder 2e3a94
-ok
rdobuilder 2e3a94
-
rdobuilder 2e3a94
 # missing bits
rdobuilder 2e3a94
 :> test.ini
rdobuilder 2e3a94
 crudini --get missing.ini 2>/dev/null && fail