mirror of
https://github.com/gryf/pythonhelper.git
synced 2025-12-18 12:00:27 +01:00
Make vim mock Python3 compatible
This commit is contained in:
@@ -7,16 +7,12 @@ import sys
|
|||||||
|
|
||||||
class Command(object):
|
class Command(object):
|
||||||
def __call__(self, args):
|
def __call__(self, args):
|
||||||
print args
|
print(args)
|
||||||
|
|
||||||
|
|
||||||
class Window(object):
|
class Window(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.cursor = (5, 13) # class
|
self.cursor = (1, 1)
|
||||||
# self.cursor = (8, 13) # class
|
|
||||||
# self.cursor = (12, 13) # inner function
|
|
||||||
# self.cursor = (22, 13) # method
|
|
||||||
# self.cursor = (30, 13) # function
|
|
||||||
# self.cursor = (36, 13) # function
|
|
||||||
|
|
||||||
|
|
||||||
class Current(object):
|
class Current(object):
|
||||||
@@ -33,6 +29,7 @@ class MockVim(object):
|
|||||||
|
|
||||||
sys.modules['vim'] = vim = MockVim
|
sys.modules['vim'] = vim = MockVim
|
||||||
|
|
||||||
|
|
||||||
import pythonhelper
|
import pythonhelper
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user