[issue25567] shlex.quote doesn't work on bytestrings

2021-04-26 Thread Shatabarto Bhattacharya
Shatabarto Bhattacharya added the comment: Looks like this issue has been solved? What is there to be worked on? -- nosy: +hrik2001 ___ Python tracker ___

[issue25567] shlex.quote doesn't work on bytestrings

2021-01-24 Thread techfixya
techfixya added the comment: How to Install Brother mfc-l2740dw driver on Windows https://techfixya.com/how-to-install-brother-mfc-l2740dw-driver-on-windows/ -- nosy: +techfixya ___ Python tracker __

[issue25567] shlex.quote doesn't work on bytestrings

2020-10-11 Thread Hassan Abouelela
Change by Hassan Abouelela : -- nosy: +HassanAbouelela nosy_count: 9.0 -> 10.0 pull_requests: +21634 pull_request: https://github.com/python/cpython/pull/22657 ___ Python tracker _

[issue25567] shlex.quote doesn't work on bytestrings

2020-05-28 Thread Cheryl Sabella
Cheryl Sabella added the comment: The first pull request has been closed, so this issue is available to be worked on. If the original patch or PR are used, please credit the original authors. Thanks! -- nosy: +cheryl.sabella versions: +Python 3.10 -Python 3.6 _

[issue25567] shlex.quote doesn't work on bytestrings

2019-06-14 Thread Aldwin Pollefeyt
Aldwin Pollefeyt added the comment: Python 3.9.0a0 [GCC 7.3.0] on linux >>> import re >>> find_unsafe_bytes = re.compile(b'[^\w@%+=:,./-]').search :1: SyntaxWarning: invalid escape sequence \w when removing \w, all the tests pass (my regex knowledge is close to None.) "\w stands for "word ch

[issue25567] shlex.quote doesn't work on bytestrings

2018-12-03 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +10106 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue25567] shlex.quote doesn't work on bytestrings

2018-09-23 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the patch since the current workflow uses GitHub PR the patch can be made as a PR to move it forward. It seems there are some conflicts as I tried to apply the attached patch against latest master. Thanks -- nosy: +xtreak _

[issue25567] shlex.quote doesn't work on bytestrings

2015-12-14 Thread Martin Panter
Martin Panter added the comment: I think the documentation needs a “Changed in version 3.6” notice -- nosy: +martin.panter ___ Python tracker ___

[issue25567] shlex.quote doesn't work on bytestrings

2015-12-14 Thread Carol Willing
Changes by Carol Willing : -- nosy: +willingc stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue25567] shlex.quote doesn't work on bytestrings

2015-11-09 Thread Nan Wu
Nan Wu added the comment: Added a patch for support this in `quote` method. What is a good example or a group of examples to demonstrate the usage in the document? -- keywords: +patch nosy: +Nan Wu Added file: http://bugs.python.org/file40992/shlex_quote_bytes_support.patch ___

[issue25567] shlex.quote doesn't work on bytestrings

2015-11-06 Thread R. David Murray
R. David Murray added the comment: I think that this is a reasonable request, and probably applies to the whole shlex module, although less strongly. You could use the surrogateescape hack to work around the problem: shlex.quote(mydata.encode('ascii', 'surrogateescape')).decode('ascii', 'su

[issue25567] shlex.quote doesn't work on bytestrings

2015-11-06 Thread Jonas Thiem
New submission from Jonas Thiem: Demonstration: >>> import shlex >>> shlex.quote(b"abc") Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python3.4/shlex.py", line 285, in quote if _find_unsafe(s) is None: TypeError: can't use a string pattern on a bytes-like obje