File: __init__.py

package info (click to toggle)
python-redbaron 0.9.2-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 772 kB
  • sloc: python: 6,650; makefile: 145; sh: 28
file content (18 lines) | stat: -rw-r--r-- 451 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from __future__ import absolute_import

from redbaron.redbaron import *
from redbaron.utils import *
from redbaron.base_nodes import *
from redbaron.nodes import *

from redbaron import nodes

DEBUG = False
ALL_IDENTIFIERS = set()

ipython_behavior = True
force_ipython_behavior = False


for name in list(filter(lambda x: x.endswith("Node"), dir(nodes))):
    list(map(ALL_IDENTIFIERS.add, filter(None, getattr(nodes, name).generate_identifiers())))