be171c849092 — Steve Fink tip 3 years ago
Python 3 compatibility
1 files changed, 5 insertions(+), 5 deletions(-)

M __init__.py
M __init__.py +5 -5
@@ 50,11 50,11 @@ def cmdconvert(orig, ui, *args, **kwargs
     return orig(ui, *args, **kwargs)
 
 def uisetup(ui):
-    ext = extensions.find('convert')
+    ext = extensions.find(b'convert')
     if not ext:
         return
     try:
-        entry = extensions.wrapcommand(ext.cmdtable, 'convert', cmdconvert, ' [--command CMD] [--ext EXT]', '''
+        entry = extensions.wrapcommand(ext.cmdtable, b'convert', cmdconvert, b' [--command CMD] [--ext EXT]', '''
 The ``cmdconvert`` extension adds the ``--command`` flag to the convert
 command. The given command will be used as a shell command to pipe the data
 from every file through, or only files with the extension EXT if the --ext EXT

          
@@ 63,7 63,7 @@ the enviroment variable CONVERT_FILENAME
 being processed.
         ''')
     except TypeError:
-        entry = extensions.wrapcommand(ext.cmdtable, 'convert', cmdconvert)
+        entry = extensions.wrapcommand(ext.cmdtable, b'convert', cmdconvert)
 
-    entry[1].extend([('', 'command', '', 'shell command to filter files through'),
-                     ('', 'ext', [], 'extensions to filter through commad')])
+    entry[1].extend([(b'', b'command', b'', b'shell command to filter files through'),
+                     (b'', b'ext', [], b'extensions to filter through command')])