1
0
forked from VimPlug/jedi

indenting bugfix

This commit is contained in:
David Halter
2012-02-20 17:23:53 +01:00
parent 38f86bc3ae
commit d720f79baa

View File

@@ -117,7 +117,7 @@ class Function(Scope):
str = "def %s(%s):\n" % (self.name,','.join(self.params))
#if len(self.docstr) > 0: str += self.childindent()+'"""'+self.docstr+'"""\n'
str += super(Function, self).get_code(True, indention)
if not len(self.subscopes):
if not len(self.subscopes) and not len(self.imports):
str += indent("pass\n", indention=indention)
print "func", self.locals
return str