Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
b2b771ca
Commit
b2b771ca
authored
9 years ago
by
stijn
Committed by
Damien George
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
py/makeqstrdefs.py: Remove unused function/variable/import.
parent
7a012f47
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
py/makeqstrdefs.py
+0
-7
0 additions, 7 deletions
py/makeqstrdefs.py
with
0 additions
and
7 deletions
py/makeqstrdefs.py
+
0
−
7
View file @
b2b771ca
...
@@ -5,7 +5,6 @@ qstr. Each qstr is transformed into a qstr definition of the form 'Q(...)'.
...
@@ -5,7 +5,6 @@ qstr. Each qstr is transformed into a qstr definition of the form 'Q(...)'.
This script works with Python 2.6, 2.7, 3.3 and 3.4.
This script works with Python 2.6, 2.7, 3.3 and 3.4.
"""
"""
import
sys
import
re
import
re
import
argparse
import
argparse
import
os
import
os
...
@@ -15,11 +14,6 @@ import os
...
@@ -15,11 +14,6 @@ import os
QSTRING_BLACK_LIST
=
{
'
NULL
'
,
'
number_of
'
,
}
QSTRING_BLACK_LIST
=
{
'
NULL
'
,
'
number_of
'
,
}
def
debug
(
message
):
#sys.stderr.write("%s\n" % message)
pass
def
write_out
(
fname
,
output
):
def
write_out
(
fname
,
output
):
if
output
:
if
output
:
fname
=
fname
.
replace
(
"
/
"
,
"
__
"
).
replace
(
"
..
"
,
"
@@
"
)
fname
=
fname
.
replace
(
"
/
"
,
"
__
"
).
replace
(
"
..
"
,
"
@@
"
)
...
@@ -29,7 +23,6 @@ def write_out(fname, output):
...
@@ -29,7 +23,6 @@ def write_out(fname, output):
def
process_file
(
f
):
def
process_file
(
f
):
output
=
[]
output
=
[]
last_fname
=
None
last_fname
=
None
outf
=
None
for
line
in
f
:
for
line
in
f
:
if
line
and
line
[
0
:
2
]
==
"
#
"
:
if
line
and
line
[
0
:
2
]
==
"
#
"
:
comp
=
line
.
split
()
comp
=
line
.
split
()
...
...
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