mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Get rid of more uses of string and use unicode
This commit is contained in:
parent
841e122f0e
commit
bed678449f
7 changed files with 18 additions and 21 deletions
|
|
@ -13,7 +13,7 @@ main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
Py_Initialize();
|
||||
pName = PyString_FromString(argv[1]);
|
||||
pName = PyUnicode_FromString(argv[1]);
|
||||
/* Error checking of pName left out */
|
||||
|
||||
pModule = PyImport_Import(pName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue