Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(150686)

Delta Between Two Patch Sets: Python/_warnings.c

Issue 11619: On Windows, don't encode filenames in the import machinery
Left Patch Set: Created 6 years, 3 months ago
Right Patch Set: Created 6 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Python/symtable.c ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 #include "Python.h" 1 #include "Python.h"
2 #include "frameobject.h" 2 #include "frameobject.h"
3 3
4 #define MODULE_NAME "_warnings" 4 #define MODULE_NAME "_warnings"
5 5
6 PyDoc_STRVAR(warnings__doc__, 6 PyDoc_STRVAR(warnings__doc__,
7 MODULE_NAME " provides basic warning filtering support.\n" 7 MODULE_NAME " provides basic warning filtering support.\n"
8 "It is a helper module to speed up interpreter start-up."); 8 "It is a helper module to speed up interpreter start-up.");
9 9
10 /* Both 'filters' and 'onceregistry' can be set in warnings.py; 10 /* Both 'filters' and 'onceregistry' can be set in warnings.py;
(...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 if (_default_action == NULL) { 1031 if (_default_action == NULL) {
1032 _default_action = PyUnicode_FromString("default"); 1032 _default_action = PyUnicode_FromString("default");
1033 if (_default_action == NULL) 1033 if (_default_action == NULL)
1034 return NULL; 1034 return NULL;
1035 } 1035 }
1036 Py_INCREF(_default_action); 1036 Py_INCREF(_default_action);
1037 if (PyModule_AddObject(m, "_defaultaction", _default_action) < 0) 1037 if (PyModule_AddObject(m, "_defaultaction", _default_action) < 0)
1038 return NULL; 1038 return NULL;
1039 return m; 1039 return m;
1040 } 1040 }
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+