summaryrefslogtreecommitdiffstats
path: root/formats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-09-01 14:59:01 +0200
committerJan Pokorný <jpokorny@redhat.com>2014-09-01 14:59:01 +0200
commitd001254b45bde6a57ef4fb93dda32b5889d75278 (patch)
treea766568ee7df7e07b2665efdbbfe758bb295125c /formats
parent6985299c8cd3fd0e57a2ba77e66755bb838faafa (diff)
downloadclufter-d001254b45bde6a57ef4fb93dda32b5889d75278.tar.gz
clufter-d001254b45bde6a57ef4fb93dda32b5889d75278.tar.xz
clufter-d001254b45bde6a57ef4fb93dda32b5889d75278.zip
format: syntactic sugar for distilling particular representation
self(self.PROTO, ...) -> self.PROTO(...) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'formats')
-rw-r--r--formats/simpleconfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/formats/simpleconfig.py b/formats/simpleconfig.py
index 5d34d7f..57408a1 100644
--- a/formats/simpleconfig.py
+++ b/formats/simpleconfig.py
@@ -76,7 +76,7 @@ class simpleconfig(SimpleFormat):
return ret
# fallback
- struct = self(self.STRUCT, protect_safe=True)
+ struct = self.STRUCT(protect_safe=True)
indent, optindent = ('\t', ) * 2
lbrace, rbrace, optsep = '{', '}', ': '
# XXX previous apply_aggregation_preserving_passing_depth attempt