Did I find the right examples for you? yes no

All Samples(14)  |  Call(12)  |  Derive(0)  |  Import(2)

src/x/d/xdress-0.4/xdress/autodescribe.py   xdress(Download)
 
from . import utils
from .utils import exec_file, RunControl, NotSpecified, Arg, merge_descriptions, \
    find_source, FORBIDDEN_NAMES, find_filenames, warn_forbidden_name, apiname, \
    ensure_apiname, c_literal, extra_filenames, newoverwrite, _lang_exts
    def _visit_func(self, node):
        name = node.attrib['name']
        if name.startswith('_') or name in FORBIDDEN_NAMES:
            warn_forbidden_name(name, self.name)
            return
        if name in FORBIDDEN_NAMES:
            rename = name + '__'
            warn_forbidden_name(name, self.name, rename)
            name = rename
        tid = node.attrib['type']
            name = node.attrib['name']
            if name in FORBIDDEN_NAMES:
                warn_forbidden_name(name, self.name)
                return
            t = self.type(node.attrib['type'])
        ftype = node.decl.type
        if name.startswith('_') or name in FORBIDDEN_NAMES:
            warn_forbidden_name(name, self.name)
            return
        self._currfunc.append(name)

src/x/d/xdress-HEAD/xdress/autodescribe.py   xdress(Download)
 
from . import utils
from .utils import exec_file, RunControl, NotSpecified, Arg, merge_descriptions, \
    find_source, FORBIDDEN_NAMES, find_filenames, warn_forbidden_name, apiname, \
    ensure_apiname, c_literal, extra_filenames, newoverwrite, _lang_exts
    def _visit_func(self, node):
        name = node.attrib['name']
        if name.startswith('_') or name in FORBIDDEN_NAMES:
            warn_forbidden_name(name, self.name)
            return
        if name in FORBIDDEN_NAMES:
            rename = name + '__'
            warn_forbidden_name(name, self.name, rename)
            name = rename
        tid = node.attrib['type']
            name = node.attrib['name']
            if name in FORBIDDEN_NAMES:
                warn_forbidden_name(name, self.name)
                return
            t = self.type(node.attrib['type'])
        ftype = node.decl.type
        if name.startswith('_') or name in FORBIDDEN_NAMES:
            warn_forbidden_name(name, self.name)
            return
        self._currfunc.append(name)