src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/NameOrder/NameOrderChecker.py

branch
eric7
changeset 10169
0f70a4ef4592
parent 10052
041d0785dd42
child 10439
21c28b0f9e41
equal deleted inserted replaced
10168:8312e0e76795 10169:0f70a4ef4592
277 if node is not None: 277 if node is not None:
278 actualList = [] 278 actualList = []
279 for el in node.elts: 279 for el in node.elts:
280 if isinstance(el, ast.Constant): 280 if isinstance(el, ast.Constant):
281 actualList.append(el.value) 281 actualList.append(el.value)
282 elif isinstance(el, ast.Str):
283 actualList.append(el.s)
284 else: 282 else:
285 # Can't handle anything that isn't a string literal 283 # Can't handle anything that isn't a string literal
286 return None 284 return None
287 285
288 expectedList = self.sorted( 286 expectedList = self.sorted(

eric ide

mercurial