mirror of
https://github.com/python/cpython.git
synced 2025-08-25 03:04:55 +00:00
No need to import exceptions, they are builtins
This commit is contained in:
parent
6203196c7c
commit
4ce69a5b06
3 changed files with 4 additions and 7 deletions
|
@ -7,13 +7,12 @@ XXX The functions here don't copy the resource fork or other metadata on Mac.
|
|||
import os
|
||||
import sys
|
||||
import stat
|
||||
import exceptions
|
||||
from os.path import abspath
|
||||
|
||||
__all__ = ["copyfileobj","copyfile","copymode","copystat","copy","copy2",
|
||||
"copytree","move","rmtree","Error"]
|
||||
|
||||
class Error(exceptions.EnvironmentError):
|
||||
class Error(EnvironmentError):
|
||||
pass
|
||||
|
||||
def copyfileobj(fsrc, fdst, length=16*1024):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue