[Python-bugs-list] "import sys" missing in shutil.py (PR#320)
guido@python.org
guido@python.org
Tue, 9 May 2000 19:34:52 -0400 (EDT)
> Full_Name: Gregory Brauer
> Version: 1.5.2
> OS: IRIX/Linux
> Submission from: 40320f82.ptr.dia.nextlink.net (64.50.15.130)
>
>
> Problem:
>
> Line 111 of shutil.py in the standard distribution references
> the "sys" module. "sys" is never included in the shutil module,
> however, and will cause a NameError if this line is executed.
>
> Solution:
> Insert at line 9:
>
> import sys
This was fixed before Python 1.5.2 was released. Maybe you're still
using a beta version?
--Guido van Rossum (home page: http://www.python.org/~guido/)