Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
8907aefd
Commit
8907aefd
authored
Feb 09, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More line ending fixes.
parent
cbfb4528
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
647 additions
and
647 deletions
+647
-647
Cython/Compiler/Tests/TestDecorators.py
Cython/Compiler/Tests/TestDecorators.py
+25
-25
Cython/Includes/python2.5.pxd
Cython/Includes/python2.5.pxd
+622
-622
No files found.
Cython/Compiler/Tests/TestDecorators.py
View file @
8907aefd
import
unittest
import
unittest
from
Cython.TestUtils
import
TransformTest
from
Cython.TestUtils
import
TransformTest
from
Cython.Compiler.ParseTreeTransforms
import
DecoratorTransform
from
Cython.Compiler.ParseTreeTransforms
import
DecoratorTransform
class
TestDecorator
(
TransformTest
):
class
TestDecorator
(
TransformTest
):
def
test_decorator
(
self
):
def
test_decorator
(
self
):
t
=
self
.
run_pipeline
([
DecoratorTransform
(
None
)],
u"""
t
=
self
.
run_pipeline
([
DecoratorTransform
(
None
)],
u"""
def decorator(fun):
def decorator(fun):
return fun
return fun
@decorator
@decorator
def decorated():
def decorated():
pass
pass
"""
)
"""
)
self
.
assertCode
(
u"""
self
.
assertCode
(
u"""
def decorator(fun):
def decorator(fun):
return fun
return fun
def decorated():
def decorated():
pass
pass
decorated = decorator(decorated)
decorated = decorator(decorated)
"""
,
t
)
"""
,
t
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
unittest
.
main
()
unittest
.
main
()
Cython/Includes/python2.5.pxd
View file @
8907aefd
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment