mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
Change tests according to the new default value GitOrigin-RevId: 79a09911127532fadcc4a4d37a454887d46effa9
4 lines
197 B
Python
4 lines
197 B
Python
def copy_location(new_node, old_node):
|
|
for attr in 'lineno', 'col_offset':
|
|
if (attr in old_node._attributes and attr in new_node._attributes and
|
|
hasattr(old_node, attr)) |