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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
805cf073
Commit
805cf073
authored
Aug 26, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more cleanup
parent
ddec9330
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+10
-12
No files found.
Cython/Compiler/Nodes.py
View file @
805cf073
...
...
@@ -4344,10 +4344,10 @@ static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed
raise_argtuple_invalid_utility_code
=
[
"""
static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
static
INLINE
void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /*proto*/
"""
,
"""
static void __Pyx_RaiseArgtupleInvalid(
static
INLINE
void __Pyx_RaiseArgtupleInvalid(
const char* func_name,
int exact,
Py_ssize_t num_min,
...
...
@@ -4355,14 +4355,7 @@ static void __Pyx_RaiseArgtupleInvalid(
Py_ssize_t num_found)
{
Py_ssize_t num_expected;
char *message, *number, *more_or_less;
message =
#if PY_VERSION_HEX < 0x02050000
"%s() takes %s %d positional argument%s (%d given)";
#else
"%s() takes %s %zd positional argument%s (%zd given)";
#endif
char *number, *more_or_less;
if (num_found < num_min) {
num_expected = num_min;
...
...
@@ -4375,8 +4368,13 @@ static void __Pyx_RaiseArgtupleInvalid(
more_or_less = "exactly";
}
number = (num_expected == 1) ? "" : "s";
PyErr_Format(PyExc_TypeError, message, func_name, more_or_less,
num_expected, number, num_found);
PyErr_Format(PyExc_TypeError,
#if PY_VERSION_HEX < 0x02050000
"%s() takes %s %d positional argument%s (%d given)",
#else
"%s() takes %s %zd positional argument%s (%zd given)",
#endif
func_name, more_or_less, num_expected, number, num_found);
}
"""
]
...
...
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