src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/MiscellaneousChecker.py

branch
eric7
changeset 10437
2f70ca07f0af
parent 10417
c6011e501282
child 10439
21c28b0f9e41
equal deleted inserted replaced
10436:f6881d10e995 10437:2f70ca07f0af
1238 def __dictShouldBeChecked(self, node): 1238 def __dictShouldBeChecked(self, node):
1239 """ 1239 """
1240 Private function to test, if the node should be checked. 1240 Private function to test, if the node should be checked.
1241 1241
1242 @param node reference to the AST node 1242 @param node reference to the AST node
1243 @type ast.Dict
1243 @return flag indicating to check the node 1244 @return flag indicating to check the node
1244 @rtype bool 1245 @rtype bool
1245 """ 1246 """
1246 if not all(AstUtilities.isString(key) for key in node.keys): 1247 if not all(AstUtilities.isString(key) for key in node.keys):
1247 return False 1248 return False
1437 @param first first token 1438 @param first first token
1438 @type tuple 1439 @type tuple
1439 @param second second token 1440 @param second second token
1440 @type tuple 1441 @type tuple
1441 @return flag indicating an implicit string concatenation 1442 @return flag indicating an implicit string concatenation
1443 @rtype bool
1442 """ 1444 """
1443 return first.type == second.type == tokenize.STRING 1445 return first.type == second.type == tokenize.STRING
1444 1446
1445 else: 1447 else:
1446 1448
1452 @param first first token 1454 @param first first token
1453 @type tuple 1455 @type tuple
1454 @param second second token 1456 @param second second token
1455 @type tuple 1457 @type tuple
1456 @return flag indicating an implicit string concatenation 1458 @return flag indicating an implicit string concatenation
1459 @rtype bool
1457 """ 1460 """
1458 return ( 1461 return (
1459 (first.type == second.type == tokenize.STRING) 1462 (first.type == second.type == tokenize.STRING)
1460 or ( 1463 or (
1461 first.type == tokenize.STRING 1464 first.type == tokenize.STRING

eric ide

mercurial