Prechádzať zdrojové kódy

Don't try to decode process output

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@46343 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 14 rokov pred
rodič
commit
95525e8d9d
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      lib/python/core.py

+ 1 - 1
lib/python/core.py

@@ -233,7 +233,7 @@ def read_command(*args, **kwargs):
     @return stdout
     @return stdout
     """
     """
     ps = pipe_command(*args, **kwargs)
     ps = pipe_command(*args, **kwargs)
-    return _decode(ps.communicate()[0])
+    return ps.communicate()[0]
 
 
 def parse_command(*args, **kwargs):
 def parse_command(*args, **kwargs):
     """!Passes all arguments to read_command, then parses the output by
     """!Passes all arguments to read_command, then parses the output by