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

Delta Between Two Patch Sets: Python/future.c

Issue 11619: On Windows, don't encode filenames in the import machinery
Left Patch Set: Created 6 years ago
Right Patch Set: Created 5 years, 12 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/errors.c ('k') | Python/pythonrun.c » ('j') | 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 "Python-ast.h" 2 #include "Python-ast.h"
3 #include "node.h" 3 #include "node.h"
4 #include "token.h" 4 #include "token.h"
5 #include "graminit.h" 5 #include "graminit.h"
6 #include "code.h" 6 #include "code.h"
7 #include "symtable.h" 7 #include "symtable.h"
8 8
9 #define UNDEFINED_FUTURE_FEATURE "future feature %.100s is not defined" 9 #define UNDEFINED_FUTURE_FEATURE "future feature %.100s is not defined"
10 #define ERR_LATE_FUTURE \ 10 #define ERR_LATE_FUTURE \
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 PyFutureFeatures *ff; 147 PyFutureFeatures *ff;
148 PyObject *filename; 148 PyObject *filename;
149 149
150 filename = PyUnicode_DecodeFSDefault(filename_str); 150 filename = PyUnicode_DecodeFSDefault(filename_str);
151 if (filename == NULL) 151 if (filename == NULL)
152 return NULL; 152 return NULL;
153 ff = PyFuture_FromASTObject(mod, filename); 153 ff = PyFuture_FromASTObject(mod, filename);
154 Py_DECREF(filename); 154 Py_DECREF(filename);
155 return ff; 155 return ff;
156 } 156 }
LEFTRIGHT

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