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
7e0c0a49
Commit
7e0c0a49
authored
Apr 28, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use str methods instead of importing string module
parent
252ec91d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+3
-4
No files found.
Cython/Compiler/PyrexTypes.py
View file @
7e0c0a49
...
...
@@ -2,7 +2,6 @@
# Pyrex - Types
#
import
string
import
Naming
class
BaseType
:
...
...
@@ -102,7 +101,7 @@ class PyrexType(BaseType):
return
str
(
value
)
def
__str__
(
self
):
return
s
tring
.
strip
(
self
.
declaration_code
(
""
,
for_display
=
1
)
)
return
s
elf
.
declaration_code
(
""
,
for_display
=
1
).
strip
(
)
def
same_as
(
self
,
other_type
,
**
kwds
):
return
self
.
same_as_resolved_type
(
other_type
.
resolve
(),
**
kwds
)
...
...
@@ -609,7 +608,7 @@ class CFuncType(CType):
return
"<CFuncType %s %s[%s]>"
%
(
repr
(
self
.
return_type
),
self
.
calling_convention_prefix
(),
string
.
join
(
arg_reprs
,
","
))
","
.
join
(
arg_reprs
))
def
calling_convention_prefix
(
self
):
cc
=
self
.
calling_convention
...
...
@@ -740,7 +739,7 @@ class CFuncType(CType):
arg_decl_list
.
append
(
self
.
op_arg_struct
.
declaration_code
(
Naming
.
optional_args_cname
))
if
self
.
has_varargs
:
arg_decl_list
.
append
(
"..."
)
arg_decl_code
=
string
.
join
(
arg_decl_list
,
", "
)
arg_decl_code
=
", "
.
join
(
arg_decl_list
)
if
not
arg_decl_code
and
not
pyrex
:
arg_decl_code
=
"void"
exc_clause
=
""
...
...
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