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
5d4ede18
Commit
5d4ede18
authored
Jun 11, 2007
by
Walter Dörwald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify ste_repr().
parent
75163600
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
Python/symtable.c
Python/symtable.c
+3
-7
No files found.
Python/symtable.c
View file @
5d4ede18
...
...
@@ -88,13 +88,9 @@ PySTEntry_New(struct symtable *st, identifier name, _Py_block_ty block,
static
PyObject
*
ste_repr
(
PySTEntryObject
*
ste
)
{
char
buf
[
256
];
PyOS_snprintf
(
buf
,
sizeof
(
buf
),
"<symtable entry %.100s(%ld), line %d>"
,
PyUnicode_AsString
(
ste
->
ste_name
),
PyInt_AS_LONG
(
ste
->
ste_id
),
ste
->
ste_lineno
);
return
PyUnicode_FromString
(
buf
);
return
PyUnicode_FromFormat
(
"<symtable entry %U(%ld), line %d>"
,
ste
->
ste_name
,
PyInt_AS_LONG
(
ste
->
ste_id
),
ste
->
ste_lineno
);
}
static
void
...
...
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