diff --git a/modules/bindings/pymod/naccess.py b/modules/bindings/pymod/naccess.py index dc65ab4ef2a0c6adaac50c452fb126c3474735d5..d2592c6b2ac3300201bb18790a918492779d335d 100644 --- a/modules/bindings/pymod/naccess.py +++ b/modules/bindings/pymod/naccess.py @@ -192,7 +192,7 @@ def _RunACCALL(command, temp_dir, query): """ proc = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE, - cwd=temp_dir) + cwd=temp_dir, universal_newlines=True) stdout_value, stderr_value = proc.communicate(query) # check for successful completion of naccess @@ -215,7 +215,7 @@ def _RunNACCESS(command, temp_dir): :exception: CalledProcessError for non-zero return value """ proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, - cwd=temp_dir) + cwd=temp_dir, universal_newlines=True) stdout_value, stderr_value = proc.communicate() # check for successful completion of naccess