[issue34915] LWPCookieJar.save() creates *.lwp file in 644 mode

2018-10-06 Thread Ales Kvapil
New submission from Ales Kvapil : The LWPCookieJar.save() creates an *.lwp file containing session cookies in non-safe 644 mode (everyone can read it). This is not a secure behavior, especially for storing session keys or session cookies. The file should be created in 600 mode in my opinion

[issue33658] Introduce a method to concatenate regex patterns

2018-05-27 Thread Ales Kvapil
New submission from Ales Kvapil : After removing inline flags (deprecated in https://bugs.python.org/issue22493) piping patterns will not work: pats = [r'(?m)^line.continues$', r'(?s)begin.*?end'] re.compile('|'.join(pats)) Maybe there should be introduced

[issue22493] Deprecate the use of flags not at the start of regular expression

2018-05-27 Thread Ales Kvapil
Ales Kvapil added the comment: See also https://bugs.python.org/issue33658 -- ___ Python tracker <https://bugs.python.org/issue22493> ___ ___ Python-bugs-list m

[issue22493] Deprecate the use of flags not at the start of regular expression

2018-05-27 Thread Ales Kvapil
Ales Kvapil added the comment: Maybe there should be introduced some method to merge patterns as just piping patterns will not work: pats = [r'(?m)^line.continues$', r'(?s)begin.*?end'] re.compile('|'.join(pats)) -- nosy: +aleskva