]> granicus.if.org Git - recode/commitdiff
Recode.pyx: add verbose argument to recode method
authorReuben Thomas <rrt@sc3d.org>
Tue, 30 Jan 2018 00:17:44 +0000 (00:17 +0000)
committerReuben Thomas <rrt@sc3d.org>
Tue, 30 Jan 2018 02:10:25 +0000 (02:10 +0000)
To ease debugging. Defaults to False.

tests/Recode.pyx

index f929c3433412fe9664f0a1371dedcccd7b7f44fa..342ddf7c61a547715dbd9277f7c2ddb14818d83e 100644 (file)
@@ -592,8 +592,9 @@ cdef class Outer:
             raise error
 
     # Lazy, all in one call.
-    def recode(self, char *command, char *input):
+    def recode(self, char *command, char *input, verbose=False):
         request = Request(self)
+        request.set_verbose(verbose)
         request.scan(command)
         return request.string(input)