mercurial/utils/procutil.py
changeset 43787 be8552f25cab
parent 43671 664e24207728
child 43862 5606e1cb4685
--- a/mercurial/utils/procutil.py	Wed Nov 13 20:42:13 2019 +0100
+++ b/mercurial/utils/procutil.py	Sun Dec 01 18:46:10 2019 -0500
@@ -249,7 +249,8 @@
 
 
 def filter(s, cmd):
-    b"filter a string through a command that transforms its input to its output"
+    """filter a string through a command that transforms its input to its
+    output"""
     for name, fn in pycompat.iteritems(_filtertable):
         if cmd.startswith(name):
             return fn(s, cmd[len(name) :].lstrip())
@@ -347,7 +348,7 @@
     """return environ with optional override, useful for shelling out"""
 
     def py2shell(val):
-        b'convert python object into string that is useful to shell'
+        """convert python object into string that is useful to shell"""
         if val is None or val is False:
             return b'0'
         if val is True: