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 |
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 |