mirror of
https://github.com/rizinorg/rz-pipe.git
synced 2026-11-07 06:45:58 -10:00
Windows cmd: Convert \r\n to \n (#38)
This commit is contained in:
1 parent
f76d3a7305
commit
15136d33df
1 file changed
+2
@@ -243,6 +243,8 @@ class OpenBase(object):
|
||||
|
||||
res = self._cmd(cmd, **kwargs)
|
||||
if res is not None:
|
||||
if os.name == "nt":
|
||||
res = res.replace("\r\n", "\n")
|
||||
return res
|
||||
return None
|
||||
|
||||
|
||||
Reference in new issue
Block a user