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
87298c4a
Commit
87298c4a
authored
Oct 31, 2010
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No declarations in the middle of a block (fixes compile under Windows)
parent
4d807667
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Modules/operator.c
Modules/operator.c
+3
-3
No files found.
Modules/operator.c
View file @
87298c4a
...
...
@@ -428,15 +428,15 @@ attrgetter_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
}
else
{
/* make it a tuple of non-dotted attrnames */
PyObject
*
attr_chain
=
PyTuple_New
(
dot_count
+
1
);
PyObject
*
attr_chain_item
;
Py_ssize_t
unibuff_from
=
0
;
Py_ssize_t
unibuff_till
=
0
;
Py_ssize_t
attr_chain_idx
=
0
;
if
(
attr_chain
==
NULL
)
{
Py_DECREF
(
attr
);
return
NULL
;
}
Py_ssize_t
unibuff_from
=
0
;
Py_ssize_t
unibuff_till
=
0
;
Py_ssize_t
attr_chain_idx
=
0
;
for
(;
dot_count
>
0
;
--
dot_count
)
{
while
(
item_buffer
[
unibuff_till
]
!=
(
Py_UNICODE
)
'.'
)
{
++
unibuff_till
;
...
...
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