[issue43818] Email does not apply policy to multipart messages with defects

2022-03-28 Thread Martin Dengler


Martin Dengler  added the comment:

Possible related to https://github.com/python/cpython/pull/32137 and 
https://bugs.python.org/issue43323

--

___
Python tracker 
<https://bugs.python.org/issue43818>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43818] Email does not apply policy to multipart messages with defects

2022-03-26 Thread Martin Dengler


Change by Martin Dengler :


--
nosy: +mdengler

___
Python tracker 
<https://bugs.python.org/issue43818>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43323] UnicodeEncodeError: surrogates not allowed when parsing invalid charset

2022-03-26 Thread Martin Dengler


Change by Martin Dengler :


--
nosy: +mdengler

___
Python tracker 
<https://bugs.python.org/issue43323>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9400] multiprocessing.pool.AsyncResult.get() messes up exceptions

2016-04-25 Thread Martin Dengler

Changes by Martin Dengler <mar...@martindengler.com>:


___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9400>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue557704] netrc module can't handle all passwords

2016-01-17 Thread Martin Dengler

Martin Dengler added the comment:

Bram's patch for "special" characters is in, mine is the one that allows spaces 
in .netrc by enabling the parsing of a password field's value that's surrounded 
by lexer.quotes ( https://hg.python.org/cpython/file/2.7/Lib/shlex.py#l45 ).

This is not the same as Perl's approach (parse the file in a 
quoted-character-aware way, so quoted spaces don't separate tokens), but was 
much simpler to implement.

So, in effect, there are no general support for quoting introduced by my patch, 
only a special case for supporting the entire contents of the password field to 
be surrounded by the shlex.quote characters.

Would you accept a different (longer, more involved) patch to implement the 
arbitrary quoting of characters, or an update to this patch to document how the 
password field is treated and which characters can surround it?

--

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue557704>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue557704] netrc module can't handle all passwords

2016-01-17 Thread Martin Dengler

Martin Dengler added the comment:

Anecdotal ( http://stackoverflow.com/a/12675195/2747741 ) evidence suggests 
other programs do indeed accept spaces, and a cursory browsing of the Perl 
source code ( 
http://perl5.git.perl.org/perl.git/blob/HEAD:/cpan/libnet/lib/Net/Netrc.pm#l120 
) indicates Perl at least supports (escaped) spaces in .netrc passwords.

Is there anything that I could do to make the patch I provided acceptable?

If not, could the bug be reopened as 1) the bug description mentions a valid 
use case that is not handled by the netrc module; and 2) there is precedent for 
this use case's implementation in other software.

--

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue557704>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21360] mailbox.Maildir should ignore files named with a leading dot

2015-02-11 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


--
nosy: +mdengler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21360
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20954] Bug in subprocess._args_from_interpreter_flags causes MemoryError

2014-11-24 Thread Martin Dengler

Martin Dengler added the comment:

FWIW, I've been using a this patch for 2.7.5 in a production setting for a 
month now and have had no problems.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20954
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22919] Update PCBuild for VS 2015

2014-11-22 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


--
nosy: +mdengler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22919
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20954] Bug in subprocess._args_from_interpreter_flags causes MemoryError

2014-10-13 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


--
nosy: +mdengler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20954
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20954] Bug in subprocess._args_from_interpreter_flags causes MemoryError

2014-10-13 Thread Martin Dengler

Martin Dengler added the comment:

Just got hit with this in 2.7.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20954
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue557704] netrc module can't handle all passwords

2014-10-09 Thread Martin Dengler

Martin Dengler added the comment:

I know this is ancient, but the below patch handles spaces in passwords in 
2.7.8 and 3.4 for me.  If this is worth making into a new bug / proper patch 
I'm happy to do it.

$ diff -uw /c/Python278/Lib/netrc.py{-orig,}
--- /c/Python278/Lib/netrc.py-orig  2014-10-09 13:52:36.995286000 +0100
+++ /c/Python278/Lib/netrc.py   2014-10-09 13:53:05.041286000 +0100
@@ -111,7 +111,23 @@
~/.netrc access too permissive: access
 permissions must restrict access to only
 the owner, file, lexer.lineno)
+# handle passwords with quoted spaces
+quote_chars = lexer.quotes
+removed_chars = []
+for quote_char in quote_chars:
+if quote_char in lexer.wordchars:
+lexer.wordchars = 
lexer.wordchars.replace(quote_char, '')
+removed_chars.append(quote_char)
+try:
+
 password = lexer.get_token()
+
+for quote_char in quote_chars:
+if password.startswith(quote_char) and 
password.endswith(quote_char):
+password = password[1:-1]
+finally:
+for removed_char in removed_chars:
+lexer.wordchars += removed_char
 else:
 raise NetrcParseError(bad follower token %r % tt,
   file, lexer.lineno)

--
nosy: +mdengler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue557704
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue557704] netrc module can't handle all passwords

2014-10-09 Thread Martin Dengler

Martin Dengler added the comment:

Sorry for the whitespace-unaware diff.  The attached patch is the real one, 
with the obvious extra level of indentation around the critical password = 
lexer.get_token() line.

--
keywords: +patch
Added file: 
http://bugs.python.org/file36851/python-netrc-password-spaces-bug-557704.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue557704
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2943] Distutils should generate a better error message when the SDK is not installed

2014-07-02 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


--
nosy: +mdengler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2943
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21722] teach distutils upload to exit with code != 0 when error occurs

2014-06-17 Thread Martin Dengler

Martin Dengler added the comment:

I've got the contrib form bit now.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21722
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21722] teach distutils upload to exit with code != 0 when error occurs

2014-06-11 Thread Martin Dengler

Martin Dengler added the comment:

The attached file is a patch for backporting this fix to 2.7.7.

--
Added file: 
http://bugs.python.org/file35573/cpython2-patch-Lib-distutils-command-upload.py.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21722
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21722] teach distutils upload to exit with code != 0 when error occurs

2014-06-11 Thread Martin Dengler

New submission from Martin Dengler:

This patch teaches distutils/command/upload.py to return a non-zero exit code 
when uploading fails.  Currently a zero error code is returned (specifically, 
no Exception is raised by upload.run(...)) regardless of the HTTP response from 
the server or any socket error during that conversation.

Should be applied against tip.

Thanks.

--
components: Library (Lib)
files: cpython-patch-Lib-distutils-command-upload.py.patch
keywords: patch
messages: 220276
nosy: mdengler
priority: normal
severity: normal
status: open
title: teach distutils upload to exit with code != 0 when error occurs
versions: Python 2.7, Python 3.5
Added file: 
http://bugs.python.org/file35572/cpython-patch-Lib-distutils-command-upload.py.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21722
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21722] teach distutils upload to exit with code != 0 when error occurs

2014-06-11 Thread Martin Dengler

Martin Dengler added the comment:

Here is the patch against hg tip.

--
Added file: 
http://bugs.python.org/file35581/cpython-patch-Lib-distutils-command-upload.py.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21722
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com




[issue21722] teach distutils upload to exit with code != 0 when error occurs

2014-06-11 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


Removed file: 
http://bugs.python.org/file35573/cpython2-patch-Lib-distutils-command-upload.py.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21722
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21722] teach distutils upload to exit with code != 0 when error occurs

2014-06-11 Thread Martin Dengler

Martin Dengler added the comment:

Here is the patch against hg 2.7.

--
Added file: 
http://bugs.python.org/file35582/cpython2-patch-Lib-distutils-command-upload.py.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21722
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21722] teach distutils upload to exit with code != 0 when error occurs

2014-06-11 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


Removed file: 
http://bugs.python.org/file35572/cpython-patch-Lib-distutils-command-upload.py.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21722
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21722] teach distutils upload to exit with code != 0 when error occurs

2014-06-11 Thread Martin Dengler

Martin Dengler added the comment:

I will submit patches with tests as soon as the before  after tests finish.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21722
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21722] teach distutils upload to exit with code != 0 when error occurs

2014-06-11 Thread Martin Dengler

Martin Dengler added the comment:

Here is the patch against tip, including a new test case.

--
Added file: 
http://bugs.python.org/file35583/cpython-patch-Lib-distutils-command-upload.py.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21722
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21722] teach distutils upload to exit with code != 0 when error occurs

2014-06-11 Thread Martin Dengler

Martin Dengler added the comment:

Here is the patch against 2.7, including a new test case.

--
Added file: 
http://bugs.python.org/file35584/cpython2-patch-Lib-distutils-command-upload.py.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21722
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21722] teach distutils upload to exit with code != 0 when error occurs

2014-06-11 Thread Martin Dengler

Martin Dengler added the comment:

If you'd like me to change anything about the test case please let me know.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21722
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21423] concurrent.futures.ThreadPoolExecutor should accept an initializer argument

2014-05-12 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


--
nosy: +mdengler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21423
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9400] multiprocessing.pool.AsyncResult.get() messes up exceptions

2014-05-12 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


--
nosy: +mdengler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9400
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2014-05-12 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


--
nosy: +mdengler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8296
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15414] os.path.join behavior on Windows (ntpath.join) is unexpected and not well documented

2014-04-16 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


--
nosy: +mdengler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15414
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1669539] Improve Windows os.path.join (ntpath.join) smart joining

2014-04-16 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


--
nosy: +mdengler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1669539
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10128] multiprocessing.Pool throws exception with __main__.py

2014-03-12 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


--
nosy: +mdengler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10128
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10128] multiprocessing.Pool throws exception with __main__.py

2014-03-12 Thread Martin Dengler

Martin Dengler added the comment:

I applied the patch from #10845 to 2.7.6 and it worked well for me.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10128
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11240] Running unit tests in a command line tool leads to infinite loop with multiprocessing on Windows

2014-03-04 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


--
nosy: +mdengler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11240
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11240] Running unit tests in a command line tool leads to infinite loop with multiprocessing on Windows

2014-03-04 Thread Martin Dengler

Martin Dengler added the comment:

 the root issue turned out to be that when you execute any multiprocessing 
 statements at the module/script level on Windows, you need to put it under if 
 __name__ == __main__, otherwise it will cause infinite spawning.

Same for me.  The error message and failure mode are completely unhelpful, 
though.

 I think this is mentioned in the multiprocessing docs but should probably be 
 in giant blinking red letters ;)

Indeed.  It would be even better if I or someone else had time to contribute a 
patch to fix the behaviour and, or at least the failure mode / error message.  
In a large codebase with multiple contributors it might not be so simple to 
track down the commit that caused the issue, especially if one is just starting 
out and the tests aren't clean.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11240
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14302] Rename Scripts directory to bin and move python.exe to bin

2014-03-04 Thread Martin Dengler

Martin Dengler added the comment:

Ok, you're right about my link #2; I meant to include this link (a reply to the 
link I actually included):

https://mail.python.org/pipermail/python-dev/2012-March/118047.html

...in which I think the pertinent quote is:

For direct execution, the proposal trades cross-version
inconsistencies for cross-platform consistency. When we *already have*
a consistent cross-platform mechanism in -m, the inevitable disruption
involved in changing the Windows layout seems very hard to justify.

I'll try to whip up a patch for http://bugs.python.org/issue14302#msg156410  
sub-proposal #2:

   2. Change 'Scripts' to 'bin'

...that uses a directory junction to mitigate the inconsistency concern 
(windows local admin rights / SeCreateSymbolicLinkPrivilege should not be an 
issue as mklink /j does not require either), unless someone beats me to it.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14302
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14302] Rename Scripts directory to bin and move python.exe to bin

2014-02-28 Thread Martin Dengler

Martin Dengler added the comment:

Is this state closed per 
https://mail.python.org/pipermail/distutils-sig/2013-October/022855.html or 
languishing  per 
https://mail.python.org/pipermail/python-dev/2012-March/117946.html ?

I would add a belated me too to the 2. Change 'Scripts' to 'bin' part for 
consistency, but it seems that the decision has been that the consistency 
benefits don't outweigh the breakage.

I would have thought that a directory junction (mklink /j Scripts bin) would 
have obviated the installer breakage concern in 
https://mail.python.org/pipermail/distutils-sig/2013-October/022855.html , 
especially given that wheels, which would not be subject to this concern, are 
coming along nicely.

Is there any appetite to revisit this decision?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14302
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20042] Python Launcher, Windows, fails on scripts w/ non-latin names

2014-02-28 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


--
nosy: +mdengler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20042
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14302] Rename Scripts directory to bin and move python.exe to bin

2014-02-27 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


--
nosy: +mdengler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14302
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2226] Small _abcoll Bugs / Oddities

2013-11-27 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


--
nosy: +mdengler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2226
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8743] set() operators don't work with collections.Set instances

2013-11-27 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


--
nosy: +mdengler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8743
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2013-11-25 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


--
nosy: +mdengler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7511
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15716] Ability to specify the PYTHONPATH via a command line flag

2012-11-28 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


--
nosy: +mdengler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15716
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16499] CLI option for isolated mode

2012-11-28 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


--
nosy: +mdengler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16499
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8098] PyImport_ImportModuleNoBlock() may solve problems but causes others.

2012-05-18 Thread Martin Dengler

Changes by Martin Dengler mar...@martindengler.com:


--
nosy: +mdengler

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com