Ticket #7848: dead.code.diff
File dead.code.diff, 2.8 KB (added by , 16 years ago) |
---|
-
django/django/http/multipartparser.py
162 162 force_unicode(data, encoding, errors='replace')) 163 163 elif item_type == FILE: 164 164 # This is a file, use the handler... 165 file_successful = True166 165 file_name = disposition.get('filename') 167 166 if not file_name: 168 167 continue … … 209 208 break 210 209 211 210 except SkipFile, e: 212 file_successful = False213 211 # Just use up the rest of this file... 214 212 exhaust(field_stream) 215 213 else: … … 515 513 else: 516 514 end = index 517 515 next = index + len(self._boundary) 518 data_len = len(data) - 1519 516 # backup over CRLF 520 517 if data[max(0,end-1)] == '\n': 521 518 end -= 1 522 519 if data[max(0,end-1)] == '\r': 523 520 end -= 1 524 # skip over --CRLF525 #if data[min(data_len,next)] == '-':526 # next += 1527 #if data[min(data_len,next)] == '-':528 # next += 1529 #if data[min(data_len,next)] == '\r':530 # next += 1531 #if data[min(data_len,next)] == '\n':532 # next += 1533 521 return end, next 534 522 535 523 def exhaust(stream_or_iterable): -
django/django/db/models/sql/query.py
1214 1214 raise MultiJoin(pos + 1) 1215 1215 if model: 1216 1216 # The field lives on a base class of the current model. 1217 alias_list = []1218 1217 for int_model in opts.get_base_chain(model): 1219 1218 lhs_col = opts.parents[int_model].column 1220 1219 dedupe = lhs_col in opts.duplicate_targets -
django/django/views/debug.py
145 145 'line': line, 146 146 'name': origin.name, 147 147 } 148 if hasattr(self.exc_value, 'exc_info') and self.exc_value.exc_info:149 exc_type, exc_value, tb = self.exc_value.exc_info150 148 151 149 def _get_lines_from_file(self, filename, lineno, context_lines, loader=None, module_name=None): 152 150 """