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
2368b3c4
Commit
2368b3c4
authored
Jun 15, 2005
by
Michael W. Hudson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consistently use hard tabs for indentation.
Slightly de-Fultonize two bits of C layout. No semantic changes.
parent
64e08147
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
165 additions
and
172 deletions
+165
-172
Modules/threadmodule.c
Modules/threadmodule.c
+165
-172
No files found.
Modules/threadmodule.c
View file @
2368b3c4
...
...
@@ -175,10 +175,7 @@ local_new(PyTypeObject *type, PyObject *args, PyObject *kw)
if
(
type
->
tp_init
==
PyBaseObject_Type
.
tp_init
&&
((
args
&&
PyObject_IsTrue
(
args
))
||
(
kw
&&
PyObject_IsTrue
(
kw
))
)
)
{
||
(
kw
&&
PyObject_IsTrue
(
kw
))))
{
PyErr_SetString
(
PyExc_TypeError
,
"Initialization arguments are not supported"
);
return
NULL
;
...
...
@@ -246,8 +243,7 @@ local_dealloc(localobject *self)
&&
tstate
->
interp
)
{
for
(
tstate
=
PyInterpreterState_ThreadHead
(
tstate
->
interp
);
tstate
;
tstate
=
PyThreadState_Next
(
tstate
)
)
tstate
=
PyThreadState_Next
(
tstate
))
if
(
tstate
->
dict
&&
PyDict_GetItem
(
tstate
->
dict
,
self
->
key
))
PyDict_DelItem
(
tstate
->
dict
,
self
->
key
);
...
...
@@ -288,8 +284,7 @@ _ldict(localobject *self)
if
(
self
->
ob_type
->
tp_init
!=
PyBaseObject_Type
.
tp_init
&&
self
->
ob_type
->
tp_init
((
PyObject
*
)
self
,
self
->
args
,
self
->
kw
)
<
0
)
{
self
->
args
,
self
->
kw
)
<
0
)
{
/* we need to get rid of ldict from thread so
we create a new one the next time we do an attr
acces */
...
...
@@ -355,10 +350,8 @@ local_getdict(localobject *self, void *closure)
}
static
PyGetSetDef
local_getset
[]
=
{
{
"__dict__"
,
(
getter
)
local_getdict
,
(
setter
)
0
,
"Local-data dictionary"
,
NULL
},
{
"__dict__"
,
(
getter
)
local_getdict
,
(
setter
)
NULL
,
"Local-data dictionary"
,
NULL
},
{
NULL
}
/* Sentinel */
};
...
...
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