[GRASS-SVN] r73466 - grass/trunk/lib/python/ctypes
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Sep 29 14:29:59 PDT 2018
Author: annakrat
Date: 2018-09-29 14:29:59 -0700 (Sat, 29 Sep 2018)
New Revision: 73466
Modified:
grass/trunk/lib/python/ctypes/preamble.py
Log:
ctypes: no need to decode bytes, should stay bytes
Modified: grass/trunk/lib/python/ctypes/preamble.py
===================================================================
--- grass/trunk/lib/python/ctypes/preamble.py 2018-09-29 20:20:42 UTC (rev 73465)
+++ grass/trunk/lib/python/ctypes/preamble.py 2018-09-29 21:29:59 UTC (rev 73466)
@@ -333,7 +333,7 @@
# Convert from bytes
elif isinstance(obj, bytes):
- return cls(decode(obj))
+ return cls(obj)
# Convert from str/unicode
elif isinstance(obj, (str, unicode)):
More information about the grass-commit
mailing list