diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-06-10 21:07:47 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-06-10 21:07:47 (GMT) |
commit | 553e156921909c22fbc6d3c244d45606a746fa80 (patch) | |
tree | 82191d25cda6664a4904073064f44cd80b5d4b37 /Objects/descrobject.c | |
parent | 785273cd84a81a695a2707c0ef48df4f285f8699 (diff) | |
parent | d741a880497b8458ef068c111caa64546166e3ff (diff) | |
download | cpython-553e156921909c22fbc6d3c244d45606a746fa80.zip cpython-553e156921909c22fbc6d3c244d45606a746fa80.tar.gz cpython-553e156921909c22fbc6d3c244d45606a746fa80.tar.bz2 |
Fixed indentation of Python examples in C comments.
Diffstat (limited to 'Objects/descrobject.c')
-rw-r--r-- | Objects/descrobject.c | 12 |
1 files changed, 6 insertions, 6 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) */ |