[issue3317] duplicate lines in zipfile.py

2008-07-12 Thread Alan McIntyre

Alan McIntyre [EMAIL PROTECTED] added the comment:

Thanks for fixing this, Amaury.  I ran the test_zipfile64 and
test_zipfile tests on Linux and OS X, and they pass.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3317
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3317] duplicate lines in zipfile.py

2008-07-11 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:

Committed as 64880.

--
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3317
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3317] duplicate lines in zipfile.py

2008-07-08 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:

Sorry, here is the patch

--
keywords: +patch
Added file: http://bugs.python.org/file10852/zipfile-removedups.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3317
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3317] duplicate lines in zipfile.py

2008-07-08 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:

Since the use of from X import * is discouraged (and serious projects
try to avoid it), the __all__ list is less and less meaningful.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3317
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3317] duplicate lines in zipfile.py

2008-07-08 Thread Alan McIntyre

Alan McIntyre [EMAIL PROTECTED] added the comment:

The patch seems to work just fine for me, all tests pass (including
test_zipfile64) on an Intel Mac.  I'd vote to go ahead and revert the
magicXXX variables back to their original names--I'm sure Twisted isn't
the only project out there that made use of them.

If the magicXXX name change gets checked in along with the current patch
I'll run the zip64 tests on Mac and Linux afterward, since they don't
get run in the standard test run on the buildbots.  I don't currently
have a Windows machine to test with.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3317
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3317] duplicate lines in zipfile.py

2008-07-07 Thread Amaury Forgeot d'Arc

New submission from Amaury Forgeot d'Arc [EMAIL PROTECTED]:

Since r64688, zipfile.py contains duplicated definitions. The attached
patch removes them.

Also, Twisted uses a zipfile item that have been renamed by this change:
zipfile.stringFileHeader (now magicFileHeader).
This makes some tests fail on the community buildbots. See the rightmost
column on
http://www.python.org/dev/buildbot/community/trunk/

I suggest to rename all magicXXX variables back to stringXXX.

--
assignee: loewis
components: Library (Lib)
messages: 69398
nosy: amaury.forgeotdarc, loewis
severity: normal
status: open
title: duplicate lines in zipfile.py
type: behavior
versions: Python 2.6

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3317
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3317] duplicate lines in zipfile.py

2008-07-07 Thread Martin v. Löwis

Martin v. Löwis [EMAIL PROTECTED] added the comment:

Alan, what do you think?

--
nosy: +alanmcintyre

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3317
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3317] duplicate lines in zipfile.py

2008-07-07 Thread Alan McIntyre

Alan McIntyre [EMAIL PROTECTED] added the comment:

I don't see a patch attached, but the duplicated code does need
removing.  If you can attach a patch I'll try it out.

As much as I dislike the string names (magicXXX seemed much more
descriptive), I suppose they're publicly available and shouldn't be
renamed without a good reason.  (Unless not being in __all__ counts as
being something one shouldn't depend on as part of the API ;)

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3317
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com