1260 @param path the exhausted path of classes |
1260 @param path the exhausted path of classes |
1261 @param result the result dictionary |
1261 @param result the result dictionary |
1262 @param fn function to call for classe that are already part of the |
1262 @param fn function to call for classe that are already part of the |
1263 result dictionary |
1263 result dictionary |
1264 """ |
1264 """ |
1265 if path[0] in list(list(result.keys())): |
1265 if path[0] in result: |
1266 if len(path) > 1: |
1266 if len(path) > 1: |
1267 fn(path[1:], result[path[0]], fn) |
1267 fn(path[1:], result[path[0]], fn) |
1268 else: |
1268 else: |
1269 for part in path: |
1269 for part in path: |
1270 result[part] = {} |
1270 result[part] = {} |