No need to import exceptions, they are builtins

This commit is contained in:
Neal Norwitz 2005-09-01 00:45:28 +00:00
parent 6203196c7c
commit 4ce69a5b06
3 changed files with 4 additions and 7 deletions

View file

@ -46,7 +46,6 @@
sophisticated high-performance network servers and clients a snap. sophisticated high-performance network servers and clients a snap.
""" """
import exceptions
import select import select
import socket import socket
import sys import sys
@ -61,7 +60,7 @@
except NameError: except NameError:
socket_map = {} socket_map = {}
class ExitNow(exceptions.Exception): class ExitNow(Exception):
pass pass
def read(obj): def read(obj):

View file

@ -27,7 +27,7 @@
"""#" """#"
import codecs, exceptions, types, aliases import codecs, types, aliases
_cache = {} _cache = {}
_unknown = '--unknown--' _unknown = '--unknown--'
@ -40,8 +40,7 @@
' ') ' ')
_aliases = aliases.aliases _aliases = aliases.aliases
class CodecRegistryError(exceptions.LookupError, class CodecRegistryError(LookupError, SystemError):
exceptions.SystemError):
pass pass
def normalize_encoding(encoding): def normalize_encoding(encoding):

View file

@ -7,13 +7,12 @@
import os import os
import sys import sys
import stat import stat
import exceptions
from os.path import abspath from os.path import abspath
__all__ = ["copyfileobj","copyfile","copymode","copystat","copy","copy2", __all__ = ["copyfileobj","copyfile","copymode","copystat","copy","copy2",
"copytree","move","rmtree","Error"] "copytree","move","rmtree","Error"]
class Error(exceptions.EnvironmentError): class Error(EnvironmentError):
pass pass
def copyfileobj(fsrc, fdst, length=16*1024): def copyfileobj(fsrc, fdst, length=16*1024):