Blame SOURCES/crudini-el6.patch

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