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/decode_cpp_string.pyx | |
parent | e6a49ace494660793c3e8cd8115277784108dc40 (diff) | |
download | cython-b67e556756c82f99d633b82cc4652d0dfcdce3f7.tar.gz |
Fix line endings.
Diffstat (limited to 'docs/examples/tutorial/string/decode_cpp_string.pyx')
-rw-r--r-- | docs/examples/tutorial/string/decode_cpp_string.pyx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/docs/examples/tutorial/string/decode_cpp_string.pyx b/docs/examples/tutorial/string/decode_cpp_string.pyx index 8f1d01af8..52861c209 100644 --- a/docs/examples/tutorial/string/decode_cpp_string.pyx +++ b/docs/examples/tutorial/string/decode_cpp_string.pyx @@ -1,10 +1,10 @@ -# distutils: language = c++
-
-from libcpp.string cimport string
-
-def get_ustrings():
- cdef string s = string(b'abcdefg')
-
- ustring1 = s.decode('UTF-8')
- ustring2 = s[2:-2].decode('UTF-8')
- return ustring1, ustring2
+# distutils: language = c++ + +from libcpp.string cimport string + +def get_ustrings(): + cdef string s = string(b'abcdefg') + + ustring1 = s.decode('UTF-8') + ustring2 = s[2:-2].decode('UTF-8') + return ustring1, ustring2 |