diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-09-28 00:22:33 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-09-28 00:22:33 +0000 |
commit | ad2fb230f818fa495395f93ef4385f005bd8ac58 (patch) | |
tree | 0c05525c37b5d334f88730d2cf6b840ce756bd79 /py/python/Ice.py | |
parent | Sun fixes (diff) | |
download | ice-ad2fb230f818fa495395f93ef4385f005bd8ac58.tar.bz2 ice-ad2fb230f818fa495395f93ef4385f005bd8ac58.tar.xz ice-ad2fb230f818fa495395f93ef4385f005bd8ac58.zip |
make Application abstract
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" |