Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4ce69a5b
Commit
4ce69a5b
authored
Sep 01, 2005
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No need to import exceptions, they are builtins
parent
6203196c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
Lib/asyncore.py
Lib/asyncore.py
+1
-2
Lib/encodings/__init__.py
Lib/encodings/__init__.py
+2
-3
Lib/shutil.py
Lib/shutil.py
+1
-2
No files found.
Lib/asyncore.py
View file @
4ce69a5b
...
@@ -46,7 +46,6 @@ many of the difficult problems for you, making the task of building
...
@@ -46,7 +46,6 @@ many of the difficult problems for you, making the task of building
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 @@ try:
...
@@ -61,7 +60,7 @@ try:
except
NameError
:
except
NameError
:
socket_map
=
{}
socket_map
=
{}
class
ExitNow
(
exceptions
.
Exception
):
class
ExitNow
(
Exception
):
pass
pass
def
read
(
obj
):
def
read
(
obj
):
...
...
Lib/encodings/__init__.py
View file @
4ce69a5b
...
@@ -27,7 +27,7 @@ Written by Marc-Andre Lemburg (mal@lemburg.com).
...
@@ -27,7 +27,7 @@ Written by Marc-Andre Lemburg (mal@lemburg.com).
"""
#"
"""
#"
import
codecs
,
exceptions
,
types
,
aliases
import
codecs
,
types
,
aliases
_cache
=
{}
_cache
=
{}
_unknown
=
'--unknown--'
_unknown
=
'--unknown--'
...
@@ -40,8 +40,7 @@ _norm_encoding_map = (' . '
...
@@ -40,8 +40,7 @@ _norm_encoding_map = (' . '
' '
)
' '
)
_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
):
...
...
Lib/shutil.py
View file @
4ce69a5b
...
@@ -7,13 +7,12 @@ XXX The functions here don't copy the resource fork or other metadata on Mac.
...
@@ -7,13 +7,12 @@ XXX The functions here don't copy the resource fork or other metadata on Mac.
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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment