Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fuchsia.googlesource.com-third_party-mako
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fuchsia-mirror
fuchsia.googlesource.com-third_party-mako
Commits
3434b0e4
Commit
3434b0e4
authored
16 years ago
by
Philip Jenvey
Browse files
Options
Downloads
Patches
Plain Diff
small cleanup
parent
65fddbe0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/mako/pyparser.py
+2
-2
2 additions, 2 deletions
lib/mako/pyparser.py
with
2 additions
and
2 deletions
lib/mako/pyparser.py
+
2
−
2
View file @
3434b0e4
...
...
@@ -89,7 +89,7 @@ if new_ast:
def
visit_Name
(
self
,
node
):
if
isinstance
(
node
.
ctx
,
_ast
.
Store
):
self
.
_add_declared
(
node
.
id
)
if
no
de
.
id
not
in
__builtin__
.
__dict__
and
node
.
id
not
in
self
.
listener
.
declared_identifiers
and
node
.
id
not
in
self
.
local_ident_stack
:
if
no
t
hasattr
(
__builtin__
,
node
.
id
)
and
node
.
id
not
in
self
.
listener
.
declared_identifiers
and
node
.
id
not
in
self
.
local_ident_stack
:
self
.
listener
.
undeclared_identifiers
.
add
(
node
.
id
)
def
visit_Import
(
self
,
node
):
for
name
in
node
.
names
:
...
...
@@ -187,7 +187,7 @@ else:
self
.
visit
(
node
.
assign
,
*
args
)
self
.
visit
(
node
.
body
,
*
args
)
def
visitName
(
self
,
node
,
*
args
):
if
no
de
.
name
not
in
__builtin__
.
__dict__
and
node
.
name
not
in
self
.
listener
.
declared_identifiers
and
node
.
name
not
in
self
.
local_ident_stack
:
if
no
t
hasattr
(
__builtin__
,
node
.
name
)
and
node
.
name
not
in
self
.
listener
.
declared_identifiers
and
node
.
name
not
in
self
.
local_ident_stack
:
self
.
listener
.
undeclared_identifiers
.
add
(
node
.
name
)
def
visitImport
(
self
,
node
,
*
args
):
for
(
mod
,
alias
)
in
node
.
names
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment