summaryrefslogtreecommitdiffstats
path: root/formats/command.py
diff options
context:
space:
mode:
Diffstat (limited to 'formats/command.py')
-rw-r--r--formats/command.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/formats/command.py b/formats/command.py
index f38897a..4f795da 100644
--- a/formats/command.py
+++ b/formats/command.py
@@ -15,15 +15,10 @@ class command(SimpleFormat):
BYTESTRING = SimpleFormat.BYTESTRING
MERGED = Protocol('merged')
- @SimpleFormat.producing(BYTESTRING)
+ @SimpleFormat.producing(BYTESTRING, chained=True)
def get_bytestring(self, *protodecl):
"""Return command as canonical single string"""
- # try to look (indirectly) if we have a file at hand first
- ret = super(command, self).get_bytestring(self.BYTESTRING)
- if ret is not None:
- return ret
-
- # fallback
+ # chained fallback
return ' '.join(self.MERGED(protect_safe=True))
@SimpleFormat.producing(SEPARATED, protect=True)