aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/cython/Cython/Utility/TestCythonScope.pyx
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /contrib/tools/cython/Cython/Utility/TestCythonScope.pyx
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
downloadydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/cython/Cython/Utility/TestCythonScope.pyx')
-rw-r--r--contrib/tools/cython/Cython/Utility/TestCythonScope.pyx128
1 files changed, 64 insertions, 64 deletions
diff --git a/contrib/tools/cython/Cython/Utility/TestCythonScope.pyx b/contrib/tools/cython/Cython/Utility/TestCythonScope.pyx
index f585be2983..5cd582d227 100644
--- a/contrib/tools/cython/Cython/Utility/TestCythonScope.pyx
+++ b/contrib/tools/cython/Cython/Utility/TestCythonScope.pyx
@@ -1,64 +1,64 @@
-########## TestClass ##########
-# These utilities are for testing purposes
-
-cdef extern from *:
- cdef object __pyx_test_dep(object)
-
-@cname('__pyx_TestClass')
-cdef class TestClass(object):
- cdef public int value
-
- def __init__(self, int value):
- self.value = value
-
- def __str__(self):
- return 'TestClass(%d)' % self.value
-
- cdef cdef_method(self, int value):
- print 'Hello from cdef_method', value
-
- cpdef cpdef_method(self, int value):
- print 'Hello from cpdef_method', value
-
- def def_method(self, int value):
- print 'Hello from def_method', value
-
- @cname('cdef_cname')
- cdef cdef_cname_method(self, int value):
- print "Hello from cdef_cname_method", value
-
- @cname('cpdef_cname')
- cpdef cpdef_cname_method(self, int value):
- print "Hello from cpdef_cname_method", value
-
- @cname('def_cname')
- def def_cname_method(self, int value):
- print "Hello from def_cname_method", value
-
-@cname('__pyx_test_call_other_cy_util')
-cdef test_call(obj):
- print 'test_call'
- __pyx_test_dep(obj)
-
-@cname('__pyx_TestClass_New')
-cdef _testclass_new(int value):
- return TestClass(value)
-
-########### TestDep ##########
-
-@cname('__pyx_test_dep')
-cdef test_dep(obj):
- print 'test_dep', obj
-
-########## TestScope ##########
-
-@cname('__pyx_testscope')
-cdef object _testscope(int value):
- return "hello from cython scope, value=%d" % value
-
-########## View.TestScope ##########
-
-@cname('__pyx_view_testscope')
-cdef object _testscope(int value):
- return "hello from cython.view scope, value=%d" % value
-
+########## TestClass ##########
+# These utilities are for testing purposes
+
+cdef extern from *:
+ cdef object __pyx_test_dep(object)
+
+@cname('__pyx_TestClass')
+cdef class TestClass(object):
+ cdef public int value
+
+ def __init__(self, int value):
+ self.value = value
+
+ def __str__(self):
+ return 'TestClass(%d)' % self.value
+
+ cdef cdef_method(self, int value):
+ print 'Hello from cdef_method', value
+
+ cpdef cpdef_method(self, int value):
+ print 'Hello from cpdef_method', value
+
+ def def_method(self, int value):
+ print 'Hello from def_method', value
+
+ @cname('cdef_cname')
+ cdef cdef_cname_method(self, int value):
+ print "Hello from cdef_cname_method", value
+
+ @cname('cpdef_cname')
+ cpdef cpdef_cname_method(self, int value):
+ print "Hello from cpdef_cname_method", value
+
+ @cname('def_cname')
+ def def_cname_method(self, int value):
+ print "Hello from def_cname_method", value
+
+@cname('__pyx_test_call_other_cy_util')
+cdef test_call(obj):
+ print 'test_call'
+ __pyx_test_dep(obj)
+
+@cname('__pyx_TestClass_New')
+cdef _testclass_new(int value):
+ return TestClass(value)
+
+########### TestDep ##########
+
+@cname('__pyx_test_dep')
+cdef test_dep(obj):
+ print 'test_dep', obj
+
+########## TestScope ##########
+
+@cname('__pyx_testscope')
+cdef object _testscope(int value):
+ return "hello from cython scope, value=%d" % value
+
+########## View.TestScope ##########
+
+@cname('__pyx_view_testscope')
+cdef object _testscope(int value):
+ return "hello from cython.view scope, value=%d" % value
+