Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add zipfile for py2 #345

Merged
merged 1 commit into from
Jul 15, 2016
Merged

add zipfile for py2 #345

merged 1 commit into from
Jul 15, 2016

Conversation

tharvik
Copy link
Contributor

@tharvik tharvik commented Jul 6, 2016

Remove py3 specific zipfile, rewrite it from doc.

class BadZipFile(Exception): ...

if sys.version_info > (3,):
BadZipfile = ... # type: Type[BadZipFile]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be easier to just say

BadZipfile = BadZipFile

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, it's clearer.

@tharvik tharvik force-pushed the improve_zipfile branch 2 times, most recently from 0298144 to 14f290f Compare July 11, 2016 08:52
@@ -0,0 +1,94 @@
# Stubs for zipfile (Python 3.4)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have this comment here if this is supposed to be 2and3?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because typo, it from stubgen but I forgot to remove it, it is amended now.

@gvanrossum
Copy link
Member

Can you fix the failing 2.7 tests?

@matthiaskramm
Copy link
Contributor

Feel free to add "zipfile" to the pytype test blacklist for the time being, if that makes things easier.

@tharvik
Copy link
Contributor Author

tharvik commented Jul 15, 2016

Opened pytype#28, added zipfile to blacklist for now.

@matthiaskramm matthiaskramm merged commit 8ef221c into python:master Jul 15, 2016
@tharvik tharvik deleted the improve_zipfile branch July 15, 2016 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants