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
52d4aeac
Commit
52d4aeac
authored
Mar 18, 2010
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make compiler's py3k warning a full deprecation warning #6837
parent
d8fdd7e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
Lib/compiler/__init__.py
Lib/compiler/__init__.py
+5
-3
No files found.
Lib/compiler/__init__.py
View file @
52d4aeac
...
...
@@ -20,9 +20,11 @@ compile(source, filename, mode, flags=None, dont_inherit=None)
compileFile(filename)
Generates a .pyc file by compiling filename.
"""
from
warnings
import
warnpy3k
warnpy3k
(
"the compiler package has been removed in Python 3.0"
,
stacklevel
=
2
)
del
warnpy3k
import
warnings
warnings
.
warn
(
"The compiler package is deprecated and removed in Python 3.x."
,
DeprecationWarning
,
stacklevel
=
2
)
from
compiler.transformer
import
parse
,
parseFile
from
compiler.visitor
import
walk
...
...
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