diff options
Diffstat (limited to 'docs/examples/userguide/extension_types/shrubbery.pyx')
-rw-r--r-- | docs/examples/userguide/extension_types/shrubbery.pyx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/docs/examples/userguide/extension_types/shrubbery.pyx b/docs/examples/userguide/extension_types/shrubbery.pyx index 9d2a5481a..8c4e58776 100644 --- a/docs/examples/userguide/extension_types/shrubbery.pyx +++ b/docs/examples/userguide/extension_types/shrubbery.pyx @@ -1,12 +1,12 @@ -from __future__ import print_function
-
-cdef class Shrubbery:
- cdef int width, height
-
- def __init__(self, w, h):
- self.width = w
- self.height = h
-
- def describe(self):
- print("This shrubbery is", self.width,
- "by", self.height, "cubits.")
+from __future__ import print_function +cdef class Shrubbery: + cdef int width + cdef int height + + def __init__(self, w, h): + self.width = w + self.height = h + + def describe(self): + print("This shrubbery is", self.width, + "by", self.height, "cubits.") |