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
821d0f8b
Commit
821d0f8b
authored
Feb 16, 2009
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no 2.3 compat in the py3k lib #3676
parent
b7851694
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
11 deletions
+1
-11
Lib/modulefinder.py
Lib/modulefinder.py
+1
-6
Lib/pkgutil.py
Lib/pkgutil.py
+0
-3
Lib/subprocess.py
Lib/subprocess.py
+0
-2
No files found.
Lib/modulefinder.py
View file @
821d0f8b
"""Find modules used by a script, using introspection."""
# This module should be kept compatible with Python 2.2, see PEP 291.
from
__future__
import
generators
import
dis
...
...
@@ -10,11 +9,7 @@ import sys
import
types
import
struct
if
hasattr
(
sys
.
__stdout__
,
"newlines"
):
READ_MODE
=
"U"
# universal line endings
else
:
# remain compatible with Python < 2.3
READ_MODE
=
"r"
READ_MODE
=
"rU"
# XXX Clean up once str8's cstor matches bytes.
LOAD_CONST
=
bytes
([
dis
.
opname
.
index
(
'LOAD_CONST'
)])
...
...
Lib/pkgutil.py
View file @
821d0f8b
"""Utilities to support packages."""
# NOTE: This module must remain compatible with Python 2.3, as it is shared
# by setuptools for distribution with Python 2.3 and up.
import
os
import
sys
import
imp
...
...
Lib/subprocess.py
View file @
821d0f8b
...
...
@@ -2,8 +2,6 @@
#
# For more information about this module, see PEP 324.
#
# This module should remain compatible with Python 2.2, see PEP 291.
#
# Copyright (c) 2003-2005 by Peter Astrand <astrand@lysator.liu.se>
#
# Licensed to PSF under a Contributor Agreement.
...
...
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