summaryrefslogtreecommitdiff
path: root/docs/examples/userguide/sharing_declarations/shrubbing.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/userguide/sharing_declarations/shrubbing.pyx')
-rw-r--r--docs/examples/userguide/sharing_declarations/shrubbing.pyx17
1 files changed, 10 insertions, 7 deletions
diff --git a/docs/examples/userguide/sharing_declarations/shrubbing.pyx b/docs/examples/userguide/sharing_declarations/shrubbing.pyx
index a8b70dae2..91235e5ec 100644
--- a/docs/examples/userguide/sharing_declarations/shrubbing.pyx
+++ b/docs/examples/userguide/sharing_declarations/shrubbing.pyx
@@ -1,7 +1,10 @@
-cdef class Shrubbery:
- def __cinit__(self, int w, int l):
- self.width = w
- self.length = l
-
-def standard_shrubbery():
- return Shrubbery(3, 7)
+
+
+
+cdef class Shrubbery:
+ def __init__(self, int w, int l):
+ self.width = w
+ self.length = l
+
+def standard_shrubbery():
+ return Shrubbery(3, 7)