Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)
A newline literal

        def Newline():
    """A newline literal"""
    return Leaf(token.NEWLINE, u"\n")
        


src/p/y/py3kwarn-HEAD/py3kwarn2to3/fixes/fix_urllib.py   py3kwarn(Download)
# Local imports
from py3kwarn2to3.fixes.fix_imports import alternates, FixImports
from py3kwarn2to3.fixer_util import (Name, Comma, FromImport, Newline,
                                find_indentation, Node, syms)
 
                nodes = []
                for new_node in new_nodes[:-1]:
                    nodes.extend([new_node, Newline()])
                nodes.append(new_nodes[-1])
                node.replace(nodes)

src/p/y/py3kwarn-0.4.4/py3kwarn2to3/fixes/fix_urllib.py   py3kwarn(Download)
# Local imports
from py3kwarn2to3.fixes.fix_imports import alternates, FixImports
from py3kwarn2to3.fixer_util import (Name, Comma, FromImport, Newline,
                                find_indentation, Node, syms)
 
                nodes = []
                for new_node in new_nodes[:-1]:
                    nodes.extend([new_node, Newline()])
                nodes.append(new_nodes[-1])
                node.replace(nodes)

src/p/y/py3kwarn-HEAD/py3kwarn2to3/fixes/fix_exitfunc.py   py3kwarn(Download)
 
from py3kwarn2to3 import pytree, fixer_base
from py3kwarn2to3.fixer_util import Name, Attr, Call, Comma, Newline, syms
 
 
                              )
            new = pytree.Node(syms.simple_stmt, [new_import])
            containing_stmt.insert_child(position + 1, Newline())
            containing_stmt.insert_child(position + 2, new)
 

src/p/y/py3kwarn-0.4.4/py3kwarn2to3/fixes/fix_exitfunc.py   py3kwarn(Download)
 
from py3kwarn2to3 import pytree, fixer_base
from py3kwarn2to3.fixer_util import Name, Attr, Call, Comma, Newline, syms
 
 
                              )
            new = pytree.Node(syms.simple_stmt, [new_import])
            containing_stmt.insert_child(position + 1, Newline())
            containing_stmt.insert_child(position + 2, new)