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
2b499436
Commit
2b499436
authored
Mar 24, 2006
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ok, compiler.transformer can really be imported now
parent
0fb43762
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
Lib/compiler/__init__.py
Lib/compiler/__init__.py
+3
-3
Lib/compiler/ast.py
Lib/compiler/ast.py
+1
-1
Lib/compiler/transformer.py
Lib/compiler/transformer.py
+2
-2
No files found.
Lib/compiler/__init__.py
View file @
2b499436
...
...
@@ -21,6 +21,6 @@ compileFile(filename)
Generates a .pyc file by compiling filename.
"""
from
.transformer
import
parse
,
parseFile
from
.visitor
import
walk
from
.pycodegen
import
compile
,
compileFile
from
compiler
.transformer
import
parse
,
parseFile
from
compiler
.visitor
import
walk
from
compiler
.pycodegen
import
compile
,
compileFile
Lib/compiler/ast.py
View file @
2b499436
...
...
@@ -2,7 +2,7 @@
This file is automatically generated by Tools/compiler/astgen.py
"""
from
consts
import
CO_VARARGS
,
CO_VARKEYWORDS
from
co
mpiler.co
nsts
import
CO_VARARGS
,
CO_VARKEYWORDS
def
flatten
(
seq
):
l
=
[]
...
...
Lib/compiler/transformer.py
View file @
2b499436
...
...
@@ -34,8 +34,8 @@ import sys
class
WalkerError
(
StandardError
):
pass
from
consts
import
CO_VARARGS
,
CO_VARKEYWORDS
from
consts
import
OP_ASSIGN
,
OP_DELETE
,
OP_APPLY
from
co
mpiler.co
nsts
import
CO_VARARGS
,
CO_VARKEYWORDS
from
co
mpiler.co
nsts
import
OP_ASSIGN
,
OP_DELETE
,
OP_APPLY
def
parseFile
(
path
):
f
=
open
(
path
,
"U"
)
...
...
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