vim/sadness/bike/ide-integration/test/extractmethod.py @ f0d5c7c0f700

vim: replace camelcasemappings with others to unshadow stuff
author Steve Losh <steve@stevelosh.com>
date Fri, 10 Dec 2010 09:55:26 -0500
parents cfd5d659d737
children (none)
def myFunction():
    a = 3
    print "hello"+a  # extract me

class MyClass:
    def myMethod(self):
        b = 12      # extract me
        c = 3       # and me
        d = 2       # and me
        print b, c


def inlineVariableTest():
    a = b + 3 - 5
    # --^^^^^  - Extract this into variable