Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 42822:302aeee32da8
Use unicode
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Sat, 25 Aug 2007 07:41:59 +0000 |
| parents | 20477cbfd996 |
| children | 2c02ba72714b |
comparison
equal
deleted
inserted
replaced
| 42821:bb288e04b8e5 | 42822:302aeee32da8 |
|---|---|
| 705 flags = &local_flags; | 705 flags = &local_flags; |
| 706 local_flags.cf_flags = 0; | 706 local_flags.cf_flags = 0; |
| 707 } | 707 } |
| 708 v = PySys_GetObject("ps1"); | 708 v = PySys_GetObject("ps1"); |
| 709 if (v == NULL) { | 709 if (v == NULL) { |
| 710 PySys_SetObject("ps1", v = PyString_FromString(">>> ")); | 710 PySys_SetObject("ps1", v = PyUnicode_FromString(">>> ")); |
| 711 Py_XDECREF(v); | 711 Py_XDECREF(v); |
| 712 } | 712 } |
| 713 v = PySys_GetObject("ps2"); | 713 v = PySys_GetObject("ps2"); |
| 714 if (v == NULL) { | 714 if (v == NULL) { |
| 715 PySys_SetObject("ps2", v = PyString_FromString("... ")); | 715 PySys_SetObject("ps2", v = PyUnicode_FromString("... ")); |
| 716 Py_XDECREF(v); | 716 Py_XDECREF(v); |
| 717 } | 717 } |
| 718 for (;;) { | 718 for (;;) { |
| 719 ret = PyRun_InteractiveOneFlags(fp, filename, flags); | 719 ret = PyRun_InteractiveOneFlags(fp, filename, flags); |
| 720 PRINT_TOTAL_REFS(); | 720 PRINT_TOTAL_REFS(); |
