summarylogtreecommitdiffstats
path: root/configparser_api_changes.patch
blob: 04b46d9b8f21850b9e5d7587c48200b7145cbafc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Andrew Starr-Bochicchio <asb@debian.org>
Subject: Update for changes in ConfigParser api.
Bug: https://bugs.launchpad.net/kazam/+bug/1500083

Index: kazam/kazam/backend/config.py
===================================================================
--- kazam.orig/kazam/backend/config.py	2013-03-13 20:25:20.917993000 -0400
+++ kazam/kazam/backend/config.py	2015-10-12 21:25:30.355157111 -0400
@@ -98,9 +98,10 @@
                     if d_key == key:
                         return d_section["keys"][key]
 
-    def get(self, section, key):
+    def get(self, section, key, raw=True, fallback=None):
         try:
-            return ConfigParser.get(self, section, key)
+            return super(KazamConfig, self).get(section,
+                         key, raw=True, fallback=fallback)
         except NoSectionError:
             default = self.find_default(section, key)
             self.set(section, key, default)