Ticket #100: unused_variables.patch
| File unused_variables.patch, 1.4 KB (added by anonymous, 5 years ago) |
|---|
-
C:/projects/workspace_python/PyYAML_2/lib/yaml/scanner.py
1281 1281 chunks = [] 1282 1282 start_mark = self.get_mark() 1283 1283 end_mark = start_mark 1284 indent = self.indent+11285 1284 # We allow zero indentation for scalars, but then we need to check for 1286 1285 # document separators at the beginning of the line. 1287 1286 #if indent == 0: … … 1313 1312 chunks.append(self.prefix(length)) 1314 1313 self.forward(length) 1315 1314 end_mark = self.get_mark() 1316 spaces = self.scan_plain_spaces( indent, start_mark)1315 spaces = self.scan_plain_spaces() 1317 1316 if not spaces or self.peek() == u'#' \ 1318 or (not self.flow_level and self.column < indent):1317 or (not self.flow_level and self.column < self.indent+1): 1319 1318 break 1320 1319 return ScalarToken(u''.join(chunks), True, start_mark, end_mark) 1321 1320 1322 def scan_plain_spaces(self , indent, start_mark):1321 def scan_plain_spaces(self): 1323 1322 # See the specification for details. 1324 1323 # The specification is really confusing about tabs in plain scalars. 1325 1324 # We just forbid them completely. Do not use tabs in YAML!
