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
d508d009
Commit
d508d009
authored
Sep 17, 2016
by
Martin Panter
Browse files
Options
Browse Files
Download
Plain Diff
Issue #28139: Merge indentation fixes from 3.5 into 3.6
parents
abf275af
6d57fe1c
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
23 deletions
+29
-23
Include/unicodeobject.h
Include/unicodeobject.h
+1
-1
Modules/_localemodule.c
Modules/_localemodule.c
+2
-1
Modules/fcntlmodule.c
Modules/fcntlmodule.c
+1
-1
Modules/signalmodule.c
Modules/signalmodule.c
+7
-7
Modules/socketmodule.c
Modules/socketmodule.c
+6
-5
Objects/funcobject.c
Objects/funcobject.c
+12
-8
No files found.
Include/unicodeobject.h
View file @
d508d009
Modules/_localemodule.c
View file @
d508d009
...
...
@@ -54,9 +54,10 @@ copy_grouping(const char* s)
int
i
;
PyObject
*
result
,
*
val
=
NULL
;
if
(
s
[
0
]
==
'\0'
)
if
(
s
[
0
]
==
'\0'
)
{
/* empty string: no grouping at all */
return
PyList_New
(
0
);
}
for
(
i
=
0
;
s
[
i
]
!=
'\0'
&&
s
[
i
]
!=
CHAR_MAX
;
i
++
)
;
/* nothing */
...
...
Modules/fcntlmodule.c
View file @
d508d009
Modules/signalmodule.c
View file @
d508d009
Modules/socketmodule.c
View file @
d508d009
...
...
@@ -2061,6 +2061,7 @@ getsockaddrlen(PySocketSockObject *s, socklen_t *len_ret)
return
1
;
}
#endif
/* AF_UNIX */
#if defined(AF_NETLINK)
case
AF_NETLINK
:
{
...
...
Objects/funcobject.c
View file @
d508d009
...
...
@@ -674,8 +674,9 @@ PyTypeObject PyFunction_Type = {
To declare a class method, use this idiom:
class C:
def f(cls, arg1, arg2, ...): ...
f = classmethod(f)
@classmethod
def f(cls, arg1, arg2, ...):
...
It can be called either on the class (e.g. C.f()) or on an instance
(e.g. C().f()); the instance is ignored except for its class.
...
...
@@ -785,8 +786,9 @@ just like an instance method receives the instance.\n\
To declare a class method, use this idiom:
\n
\
\n
\
class C:
\n
\
def f(cls, arg1, arg2, ...): ...
\n
\
f = classmethod(f)
\n
\
@classmethod
\n
\
def f(cls, arg1, arg2, ...):
\n
\
...
\n
\
\n
\
It can be called either on the class (e.g. C.f()) or on an instance
\n
\
(e.g. C().f()). The instance is ignored except for its class.
\n
\
...
...
@@ -857,8 +859,9 @@ PyClassMethod_New(PyObject *callable)
To declare a static method, use this idiom:
class C:
def f(arg1, arg2, ...): ...
f = staticmethod(f)
@staticmethod
def f(arg1, arg2, ...):
...
It can be called either on the class (e.g. C.f()) or on an instance
(e.g. C().f()); the instance is ignored except for its class.
...
...
@@ -963,8 +966,9 @@ A static method does not receive an implicit first argument.\n\
To declare a static method, use this idiom:
\n
\
\n
\
class C:
\n
\
def f(arg1, arg2, ...): ...
\n
\
f = staticmethod(f)
\n
\
@staticmethod
\n
\
def f(arg1, arg2, ...):
\n
\
...
\n
\
\n
\
It can be called either on the class (e.g. C.f()) or on an instance
\n
\
(e.g. C().f()). The instance is ignored except for its class.
\n
\
...
...
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