Skip to content

Commit

Permalink
libpython: mapcalc_start fix encode string (#738)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi authored and petrasovaa committed Jun 26, 2020
1 parent b2981e0 commit cf4e10e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/python/script/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

from .core import *
from grass.exceptions import CalledModuleError
from .utils import float_or_dms, parse_key_val, try_remove
from .utils import encode, float_or_dms, parse_key_val, try_remove


if sys.version_info.major == 3:
Expand Down Expand Up @@ -158,7 +158,7 @@ def mapcalc_start(exp, quiet=False, verbose=False, overwrite=False,

p = feed_command('r.mapcalc', file='-', env=env, seed=seed,
quiet=quiet, verbose=verbose, overwrite=overwrite)
p.stdin.write(e)
p.stdin.write(encode(e))
p.stdin.close()
return p

Expand Down

0 comments on commit cf4e10e

Please sign in to comment.