]> rtime.felk.cvut.cz Git - linux-conf-perf.git/commitdiff
Fix wrong function call in configurations script
authorKarel Kočí <cynerd@email.cz>
Mon, 24 Aug 2015 14:54:05 +0000 (16:54 +0200)
committerKarel Kočí <cynerd@email.cz>
Mon, 24 Aug 2015 14:54:05 +0000 (16:54 +0200)
scripts/configurations.py

index 63c4016fe0d1daaa9cca2d1281035b7bd7d49945..ed81ef2910874e54d8186ff5182e219612366989 100644 (file)
@@ -234,6 +234,7 @@ def generate():
        raise exceptions.NoNewConfiguration()
 
 def compare(conf1, conf2):
+       """Compared two configuration"""
        # This is not exactly best comparison method
        for key, val in conf1.items():
                try:
@@ -252,10 +253,9 @@ def compare(conf1, conf2):
 def compare_text(text1, text2):
        conf1 = __load_config_text__(text1)
        conf2 = __load_config_text__(text2)
-       return compare_file(conf1, conf2)
+       return compare(conf1, conf2)
 
 def compare_file(file1, file2):
-       """Compared two configuration"""
        conf1 = __load_config_file__(file1)
        conf2 = __load_config_file__(file2)
-       return compare_file(conf1, conf2)
+       return compare(conf1, conf2)