move script in refactorings to be the default first parameter

This commit is contained in:
David Halter
2013-01-06 01:57:02 +01:00
parent 4700656c71
commit 48c04b2fcd
3 changed files with 12 additions and 10 deletions

View File

@@ -55,10 +55,10 @@ class Script(object):
source_encoding='utf-8'):
api_classes._clear_caches()
debug.reset_time()
source = modules.source_to_unicode(source, source_encoding)
self.source = modules.source_to_unicode(source, source_encoding)
self.pos = line, column
self._module = modules.ModuleWithCursor(source_path, source=source,
position=self.pos)
self._module = modules.ModuleWithCursor(source_path,
source=self.source, position=self.pos)
self.source_path = source_path
debug.speed('init')