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
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
fdf0da54
Commit
fdf0da54
authored
11 years ago
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
makeqstrdata: print error to stderr.
parent
6fc765c9
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/makeqstrdata.py
+3
-2
3 additions, 2 deletions
py/makeqstrdata.py
with
3 additions
and
2 deletions
py/makeqstrdata.py
+
3
−
2
View file @
fdf0da54
import
argparse
import
re
import
sys
# codepoint2name is different in Python 2 to Python 3
import
platform
...
...
@@ -37,7 +38,7 @@ def do_work(infiles):
# verify line is of the correct form
match
=
re
.
match
(
r
'
Q\((.+)\)$
'
,
line
)
if
not
match
:
print
(
'
({}:{}) bad qstr format, got {}
'
.
format
(
infile
,
line_number
,
line
))
print
(
'
({}:{}) bad qstr format, got {}
'
.
format
(
infile
,
line_number
,
line
)
,
file
=
sys
.
stderr
)
return
False
# get the qstr value
...
...
@@ -68,7 +69,7 @@ def main():
result
=
do_work
(
args
.
files
)
if
not
result
:
print
(
'
exiting with error code
'
)
print
(
'
exiting with error code
'
,
file
=
sys
.
stderr
)
exit
(
1
)
if
__name__
==
"
__main__
"
:
...
...
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