diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2019-02-15 20:35:23 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2019-02-15 20:47:04 +0100 |
commit | b67e556756c82f99d633b82cc4652d0dfcdce3f7 (patch) | |
tree | 2c14538d202c1f8eeaa84a774da0cb7fc2e778a4 /docs/examples/tutorial/string/cpp_string.pyx | |
parent | e6a49ace494660793c3e8cd8115277784108dc40 (diff) | |
download | cython-b67e556756c82f99d633b82cc4652d0dfcdce3f7.tar.gz |
Fix line endings.
Diffstat (limited to 'docs/examples/tutorial/string/cpp_string.pyx')
-rw-r--r-- | docs/examples/tutorial/string/cpp_string.pyx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/docs/examples/tutorial/string/cpp_string.pyx b/docs/examples/tutorial/string/cpp_string.pyx index b6c9e44f9..313e72a67 100644 --- a/docs/examples/tutorial/string/cpp_string.pyx +++ b/docs/examples/tutorial/string/cpp_string.pyx @@ -1,12 +1,12 @@ -# distutils: language = c++
-
-from libcpp.string cimport string
-
-def get_bytes():
- py_bytes_object = b'hello world'
- cdef string s = py_bytes_object
-
- s.append('abc')
- py_bytes_object = s
- return py_bytes_object
-
+# distutils: language = c++ + +from libcpp.string cimport string + +def get_bytes(): + py_bytes_object = b'hello world' + cdef string s = py_bytes_object + + s.append('abc') + py_bytes_object = s + return py_bytes_object + |