Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 48477:e26c724d5e23
Make these files to compile again under Windows.
| author | Thomas Heller <theller@ctypes.org> |
|---|---|
| date | Tue, 15 Jul 2008 17:14:51 +0000 |
| parents | 2ee09afee126 |
| children | aca5b2e6a66f |
comparison
equal
deleted
inserted
replaced
| 48476:f8723eb105ac | 48477:e26c724d5e23 |
|---|---|
| 1338 } | 1338 } |
| 1339 if (err) { | 1339 if (err) { |
| 1340 /* Don't do anything else */ | 1340 /* Don't do anything else */ |
| 1341 } | 1341 } |
| 1342 else { | 1342 else { |
| 1343 PyObject* moduleName; | |
| 1344 char* className; | |
| 1343 assert(PyExceptionClass_Check(type)); | 1345 assert(PyExceptionClass_Check(type)); |
| 1344 PyObject* moduleName; | 1346 className = PyExceptionClass_Name(type); |
| 1345 char* className = PyExceptionClass_Name(type); | |
| 1346 if (className != NULL) { | 1347 if (className != NULL) { |
| 1347 char *dot = strrchr(className, '.'); | 1348 char *dot = strrchr(className, '.'); |
| 1348 if (dot != NULL) | 1349 if (dot != NULL) |
| 1349 className = dot+1; | 1350 className = dot+1; |
| 1350 } | 1351 } |
