diff options
Diffstat (limited to 'py/python/Ice.py')
-rw-r--r-- | py/python/Ice.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/python/Ice.py b/py/python/Ice.py index 04feae06c73..506e2d0110a 100644 --- a/py/python/Ice.py +++ b/py/python/Ice.py @@ -383,6 +383,10 @@ _previousCallback = None import signal, traceback class Application(object): + def __init__(self): + if type(self) == Application: + raise RuntimeError("Ice.Application is an abstract class") + def main(self, args, configFile=None): if Application._communicator: print args[0] + ": only one instance of the Application class can be used" |