diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2015-12-19 04:11:48 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2015-12-19 04:11:48 +0000 |
commit | e07938ae8e1a7793ab381b85d0a9a1348d6fecc3 (patch) | |
tree | d58d3924785991f1de9c480e29dac637002b7695 | |
parent | 01611702ec04fa70445fd2c7d37b9b312d3f7561 (diff) | |
download | swig-e07938ae8e1a7793ab381b85d0a9a1348d6fecc3.tar.gz |
pystrings.swg cosmetic formatting
-rw-r--r-- | Lib/python/pystrings.swg | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/Lib/python/pystrings.swg b/Lib/python/pystrings.swg index 33c00329d..a088c4cea 100644 --- a/Lib/python/pystrings.swg +++ b/Lib/python/pystrings.swg @@ -42,18 +42,17 @@ SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) %#else if (*alloc == SWIG_NEWOBJ) %#endif - { - *cptr = %new_copy_array(cstr, len + 1, char); - *alloc = SWIG_NEWOBJ; - } - else { + { + *cptr = %new_copy_array(cstr, len + 1, char); + *alloc = SWIG_NEWOBJ; + } else { *cptr = cstr; *alloc = SWIG_OLDOBJ; } } else { - %#if PY_VERSION_HEX>=0x03000000 - assert(0); /* Should never reach here in Python 3 */ - %#endif + %#if PY_VERSION_HEX>=0x03000000 + assert(0); /* Should never reach here in Python 3 */ + %#endif *cptr = SWIG_Python_str_AsChar(obj); } } |