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

missing errno import in distutils/dir_util.py #54616

Closed
zbysz mannequin opened this issue Nov 13, 2010 · 3 comments
Closed

missing errno import in distutils/dir_util.py #54616

zbysz mannequin opened this issue Nov 13, 2010 · 3 comments
Assignees
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@zbysz
Copy link
Mannequin

zbysz mannequin commented Nov 13, 2010

BPO 10407
Nosy @tarekziade, @merwok

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/merwok'
closed_at = <Date 2010-11-20.20:21:20.787>
created_at = <Date 2010-11-13.14:06:35.653>
labels = ['type-bug', 'library']
title = 'missing errno import in distutils/dir_util.py'
updated_at = <Date 2010-11-20.20:21:20.786>
user = 'https://bugs.python.org/zbysz'

bugs.python.org fields:

activity = <Date 2010-11-20.20:21:20.786>
actor = 'eric.araujo'
assignee = 'eric.araujo'
closed = True
closed_date = <Date 2010-11-20.20:21:20.787>
closer = 'eric.araujo'
components = ['Distutils']
creation = <Date 2010-11-13.14:06:35.653>
creator = 'zbysz'
dependencies = []
files = []
hgrepos = []
issue_num = 10407
keywords = []
message_count = 3.0
messages = ['121137', '121138', '121757']
nosy_count = 3.0
nosy_names = ['tarek', 'eric.araujo', 'zbysz']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue10407'
versions = ['Python 3.1', 'Python 2.7', 'Python 3.2']

@zbysz
Copy link
Mannequin Author

zbysz mannequin commented Nov 13, 2010

Fix is trivial:
diff -r 8daacdacf720 -r 1a821081b470 Lib/distutils/dir_util.py
--- a/Lib/distutils/dir_util.py Sat Nov 13 13:27:49 2010 +0100
+++ b/Lib/distutils/dir_util.py Sat Nov 13 14:37:49 2010 +0100
@@ -5,6 +5,7 @@
 __revision__ = "$Id: dir_util.py 86244 2010-11-06 04:48:05Z eric.araujo $"
 
 import os, sys
+import errno
 from distutils.errors import DistutilsFileError, DistutilsInternalError
 from distutils import log

@zbysz zbysz mannequin assigned tarekziade Nov 13, 2010
@zbysz zbysz mannequin added type-crash A hard crash of the interpreter, possibly with a core dump stdlib Python modules in the Lib dir labels Nov 13, 2010
@merwok
Copy link
Member

merwok commented Nov 13, 2010

Thanks for the report. I’ve run pyflakes over the distutils directory and found another error in test_sysconfig. Will fix shortly.

@merwok merwok assigned merwok and unassigned tarekziade Nov 13, 2010
@merwok merwok added type-bug An unexpected behavior, bug, or error and removed type-crash A hard crash of the interpreter, possibly with a core dump labels Nov 13, 2010
@merwok
Copy link
Member

merwok commented Nov 20, 2010

Fixed in r86601 and r86605 (py3k), r86606 (3.1), r86609 (2.7). Thanks!

@merwok merwok closed this as completed Nov 20, 2010
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant