summaryrefslogtreecommitdiffstats
path: root/Modules/stdwinmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-08 02:25:24 (GMT)
committerGuido van Rossum <guido@python.org>1998-10-08 02:25:24 (GMT)
commit7e48898d86aaddac7f26b7a859a7b8996dfdbea9 (patch)
treeab895a2a39069e9c005ee5e887d2292d0e7ab94e /Modules/stdwinmodule.c
parentb317f8aa0d1387f30c72df47bf18cb7517f45f2a (diff)
downloadcpython-7e48898d86aaddac7f26b7a859a7b8996dfdbea9.zip
cpython-7e48898d86aaddac7f26b7a859a7b8996dfdbea9.tar.gz
cpython-7e48898d86aaddac7f26b7a859a7b8996dfdbea9.tar.bz2
Use the t# format where appropriate. Greg Stein.
Diffstat (limited to 'Modules/stdwinmodule.c')
-rw-r--r--Modules/stdwinmodule.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/stdwinmodule.c b/Modules/stdwinmodule.c
index c24b3ef..a272047 100644
--- a/Modules/stdwinmodule.c
+++ b/Modules/stdwinmodule.c
@@ -546,7 +546,7 @@ drawing_text(dp, args)
{
int h, v, size;
char *text;
- if (!PyArg_Parse(args, "((ii)s#)", &h, &v, &text, &size))
+ if (!PyArg_Parse(args, "((ii)t#)", &h, &v, &text, &size))
return NULL;
wdrawtext(h, v, text, size);
Py_INCREF(Py_None);
@@ -582,7 +582,7 @@ drawing_textwidth(dp, args)
{
char *text;
int size;
- if (!PyArg_Parse(args, "s#", &text, &size))
+ if (!PyArg_Parse(args, "t#", &text, &size))
return NULL;
return PyInt_FromLong((long)wtextwidth(text, size));
}
@@ -594,7 +594,7 @@ drawing_textbreak(dp, args)
{
char *text;
int size, width;
- if (!PyArg_Parse(args, "(s#i)", &text, &size, &width))
+ if (!PyArg_Parse(args, "(t#i)", &text, &size, &width))
return NULL;
return PyInt_FromLong((long)wtextbreak(text, size, width));
}
@@ -1056,7 +1056,7 @@ text_settext(self, args)
char *text;
char *buf;
int size;
- if (!PyArg_Parse(args, "s#", &text, &size))
+ if (!PyArg_Parse(args, "t#", &text, &size))
return NULL;
if ((buf = PyMem_NEW(char, size)) == NULL) {
return PyErr_NoMemory();
@@ -1809,7 +1809,7 @@ window_setselection(self, args)
{
int sel, size, ok;
char *text;
- if (!PyArg_Parse(args, "(is#)", &sel, &text, &size))
+ if (!PyArg_Parse(args, "(it#)", &sel, &text, &size))
return NULL;
ok = wsetselection(self->w_win, sel, text, size);
return PyInt_FromLong(ok);
@@ -2320,7 +2320,7 @@ stdwin_setcutbuffer(self, args)
{
int i, size;
char *str;
- if (!PyArg_Parse(args, "(is#)", &i, &str, &size))
+ if (!PyArg_Parse(args, "(it#)", &i, &str, &size))
return NULL;
wsetcutbuffer(i, str, size);
Py_INCREF(Py_None);