comparison Python/pythonrun.c @ 65347:f63d747622bd

redecode_filename(): don't need to initialize variables
author Victor Stinner <victor.stinner@haypocalc.com>
date Fri, 15 Oct 2010 11:16:59 +0000
parents a75fd31ddabb
children 453fd8182c2f
comparison
equal deleted inserted replaced
65346:cc1d8a2db348 65347:f63d747622bd
723 'new_encoding' encoding with 'errors' error handler */ 723 'new_encoding' encoding with 'errors' error handler */
724 static PyObject* 724 static PyObject*
725 redecode_filename(PyObject *file, const char *new_encoding, 725 redecode_filename(PyObject *file, const char *new_encoding,
726 const char *errors) 726 const char *errors)
727 { 727 {
728 PyObject *file_bytes = NULL, *new_file = NULL; 728 PyObject *file_bytes, *new_file;
729 729
730 file_bytes = PyUnicode_EncodeFSDefault(file); 730 file_bytes = PyUnicode_EncodeFSDefault(file);
731 if (file_bytes == NULL) 731 if (file_bytes == NULL)
732 return NULL; 732 return NULL;
733 new_file = PyUnicode_Decode( 733 new_file = PyUnicode_Decode(