1. Felix Krull
  2. rgain


Felix Krull  committed ab632d7

Add some comments.

  • Participants
  • Parent commits eb84e23
  • Branches default

Comments (0)

Files changed (1)

File rgain/script/__init__.py

View file
 stdout_encoding = sys.stdout.encoding or getfilesystemencoding()
 def ou(arg):
+    # turn arg into a string suitable for console output
     if isinstance(arg, str):
+        # we aggressively suggest that anything passed into this function should
+        # be a Unicode string by rejecting non-ASCII byte input.
         return arg.decode("ascii").encode(stdout_encoding)
     return arg.encode(stdout_encoding)