diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2014-11-14 13:23:12 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2014-11-14 22:11:19 +0100 |
commit | 904116553df1ac3d3ef5ecc88df33d04be29cf50 (patch) | |
tree | 64e66d0f3ce5d1dd52c714979076e7089b8392c9 /formats/simpleconfig.py | |
parent | 79360db8e405d520379027cc73c02b08f28b1fc0 (diff) | |
download | clufter-904116553df1ac3d3ef5ecc88df33d04be29cf50.tar.gz clufter-904116553df1ac3d3ef5ecc88df33d04be29cf50.tar.xz clufter-904116553df1ac3d3ef5ecc88df33d04be29cf50.zip |
format: make passing protocol/protodecl optional
It is usually not used internally to allow "1 function, more roles"
anyway.
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'formats/simpleconfig.py')
-rw-r--r-- | formats/simpleconfig.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/formats/simpleconfig.py b/formats/simpleconfig.py index 57408a1..04df34b 100644 --- a/formats/simpleconfig.py +++ b/formats/simpleconfig.py @@ -45,7 +45,7 @@ class simpleconfig(SimpleFormat): BYTESTRING = SimpleFormat.BYTESTRING @SimpleFormat.producing(BYTESTRING) - def get_bytestring(self, protocol): + def get_bytestring(self, *protodecl): """Externalize 'struct', that is basically, pretty print it For example above, the result is something like: @@ -115,6 +115,6 @@ class simpleconfig(SimpleFormat): return ret @SimpleFormat.producing(STRUCT, protect=True) - def get_struct(self, protocol): + def get_struct(self, *protodecl): # TODO parsing struct from string raise NotImplementedError |