summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-06-10 21:09:32 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-06-10 21:09:32 (GMT)
commitec466a15d99cfb120d405db8307f9f4eb31e51d3 (patch)
treeea2e82c037bd0b9b3fc5b108edeae0bd1122eae3 /Objects
parent27da359519522820c86930f957da8563e4f77353 (diff)
parent553e156921909c22fbc6d3c244d45606a746fa80 (diff)
downloadcpython-ec466a15d99cfb120d405db8307f9f4eb31e51d3.zip
cpython-ec466a15d99cfb120d405db8307f9f4eb31e51d3.tar.gz
cpython-ec466a15d99cfb120d405db8307f9f4eb31e51d3.tar.bz2
Fixed indentation of Python examples in C comments.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/descrobject.c12
-rw-r--r--Objects/typeobject.c2
2 files changed, 7 insertions, 7 deletions
diff --git a/Objects/descrobject.c b/Objects/descrobject.c
index 1a69b6b..9ffbca7 100644
--- a/Objects/descrobject.c
+++ b/Objects/descrobject.c
@@ -1268,11 +1268,11 @@ PyWrapper_New(PyObject *d, PyObject *self)
/* A built-in 'property' type */
/*
- class property(object):
+class property(object):
def __init__(self, fget=None, fset=None, fdel=None, doc=None):
if doc is None and fget is not None and hasattr(fget, "__doc__"):
- doc = fget.__doc__
+ doc = fget.__doc__
self.__get = fget
self.__set = fset
self.__del = fdel
@@ -1280,19 +1280,19 @@ PyWrapper_New(PyObject *d, PyObject *self)
def __get__(self, inst, type=None):
if inst is None:
- return self
+ return self
if self.__get is None:
- raise AttributeError, "unreadable attribute"
+ raise AttributeError, "unreadable attribute"
return self.__get(inst)
def __set__(self, inst, value):
if self.__set is None:
- raise AttributeError, "can't set attribute"
+ raise AttributeError, "can't set attribute"
return self.__set(inst, value)
def __delete__(self, inst):
if self.__del is None:
- raise AttributeError, "can't delete attribute"
+ raise AttributeError, "can't delete attribute"
return self.__del(inst)
*/
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 2f1779f..82c8710 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -4245,7 +4245,7 @@ PyDoc_STRVAR(object_subclasshook_doc,
class object:
def __format__(self, format_spec):
- return format(str(self), format_spec)
+ return format(str(self), format_spec)
*/
static PyObject *
object_format(PyObject *self, PyObject *args)