This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from redbaron import RedBaron, AssignmentNode, TupleNode | |
def same_source(a, b): | |
""" | |
Фильтр узлов дерева. | |
""" | |
return a.value[0].value == b.value[0].value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import ast | |
from ast import ( | |
Assign, | |
Subscript, | |
Name, | |
Index, | |
NodeTransformer, | |
Tuple, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding: utf-8 | |
from django.conf import settings | |
from django.db import connections, models as django_models | |
from django.utils.importlib import import_module | |
routers = [] | |
models = django_models.get_models() | |
cursors = {} |