import stuff in __init__.py

This commit is contained in:
David Halter
2012-09-18 16:05:01 +02:00
parent e889edf244
commit 40eac8eeed
2 changed files with 6 additions and 6 deletions

View File

@@ -1,2 +1,2 @@
from api import *
import settings
from .api import Script, NotFoundError, set_debug_function
from . import settings

View File

@@ -1,3 +1,5 @@
__all__ = ['Script', 'NotFoundError', 'set_debug_function']
import re
import weakref
@@ -13,8 +15,6 @@ import helpers
from _compatibility import next
__all__ = ['Script', 'NotFoundError', 'set_debug_function']
class NotFoundError(Exception):
""" A custom error to avoid catching the wrong exceptions """
@@ -39,7 +39,8 @@ class Completion(object):
append = '('
if settings.add_dot_after_module:
if isinstance(self.base, parsing.Module): append += '.'
if isinstance(self.base, parsing.Module):
append += '.'
if isinstance(self.base, parsing.Param):
append += '='
return dot + self.name.names[-1][self.like_name_length:] + append
@@ -147,7 +148,6 @@ class CallDef(object):
def module(self):
return self.executable.get_parent_until()
def __repr__(self):
return '<%s: %s index %s>' % (self.__class__.__name__, self.executable,
self.index)