summaryrefslogtreecommitdiffstats
path: root/contrib/python/ipython/py3/IPython/utils/_process_win32.py
diff options
context:
space:
mode:
authorAlexander Smirnov <[email protected]>2024-12-19 08:16:17 +0000
committerAlexander Smirnov <[email protected]>2024-12-19 08:16:17 +0000
commitc1c806d731fa634503bf452ee3c603ed956abe2c (patch)
treef2a69c7615b518119f1c895672544ce8ad1a4fe4 /contrib/python/ipython/py3/IPython/utils/_process_win32.py
parent892a954b648dfce3da44ad433b2258e303b08b06 (diff)
parentbb0840c0025a75dd3b85b746ebcec7deb7d9fe1c (diff)
Merge branch 'rightlib' into mergelibs-241219-0815
Diffstat (limited to 'contrib/python/ipython/py3/IPython/utils/_process_win32.py')
-rw-r--r--contrib/python/ipython/py3/IPython/utils/_process_win32.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/python/ipython/py3/IPython/utils/_process_win32.py b/contrib/python/ipython/py3/IPython/utils/_process_win32.py
index 36fb092d7b2..7a959780854 100644
--- a/contrib/python/ipython/py3/IPython/utils/_process_win32.py
+++ b/contrib/python/ipython/py3/IPython/utils/_process_win32.py
@@ -170,7 +170,7 @@ try:
# not really a cl-arg, fallback on _process_common
return py_arg_split(commandline, posix=posix, strict=strict)
argvn = c_int()
- result_pointer = CommandLineToArgvW(py3compat.cast_unicode(commandline.lstrip()), ctypes.byref(argvn))
+ result_pointer = CommandLineToArgvW(commandline.lstrip(), ctypes.byref(argvn))
result_array_type = LPCWSTR * argvn.value
result = [arg for arg in result_array_type.from_address(ctypes.addressof(result_pointer.contents))]
retval = LocalFree(result_pointer)