summaryrefslogtreecommitdiffstats
path: root/Modules/binascii.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/binascii.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/binascii.c')
-rw-r--r--Modules/binascii.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/binascii.c b/Modules/binascii.c
index 295ff74..26e4b6c 100644
--- a/Modules/binascii.c
+++ b/Modules/binascii.c
@@ -213,7 +213,7 @@ binascii_a2b_uu(self, args)
PyObject *rv;
int ascii_len, bin_len;
- if ( !PyArg_ParseTuple(args, "s#", &ascii_data, &ascii_len) )
+ if ( !PyArg_ParseTuple(args, "t#", &ascii_data, &ascii_len) )
return NULL;
/* First byte: binary data length (in bytes) */
@@ -343,7 +343,7 @@ binascii_a2b_base64(self, args)
PyObject *rv;
int ascii_len, bin_len;
- if ( !PyArg_ParseTuple(args, "s#", &ascii_data, &ascii_len) )
+ if ( !PyArg_ParseTuple(args, "t#", &ascii_data, &ascii_len) )
return NULL;
bin_len = ((ascii_len+3)/4)*3; /* Upper bound, corrected later */
@@ -457,7 +457,7 @@ binascii_a2b_hqx(self, args)
int len;
int done = 0;
- if ( !PyArg_ParseTuple(args, "s#", &ascii_data, &len) )
+ if ( !PyArg_ParseTuple(args, "t#", &ascii_data, &len) )
return NULL;
/* Allocate a string that is too big (fixed later) */