14539: Removes pointless code comment.
authorLucas Di Pentima <ldipentima@veritasgenetics.com>
Thu, 17 Jan 2019 09:48:53 +0000 (06:48 -0300)
committerLucas Di Pentima <ldipentima@veritasgenetics.com>
Thu, 17 Jan 2019 09:48:53 +0000 (06:48 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>

sdk/python/arvados/_normalize_stream.py

index 9b29e8804607f17dfff2adca35d0a44b99f2b6d6..2619ba5086afed1ee918b089b496ac296f5c159e 100644 (file)
@@ -10,10 +10,7 @@ import re
 def escape(path):
     # Escape literal backslash
     path = re.sub('\\\\', lambda m: '\\134', path)
-    # Escape other special chars. Py3's oct() output differs from Py2, this takes
-    # care of those differences.
-    path = re.sub(
-        '([:\000-\040])', lambda m: "\\%03o" % ord(m.group(1)), path)
+    path = re.sub('([:\000-\040])', lambda m: "\\%03o" % ord(m.group(1)), path)
     return path
 
 def normalize_stream(stream_name, stream):