From b59742dd35cf7dd4994402e73dff79ae1e7ca4c1 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 25 May 2005 05:17:52 +0000 Subject: [PATCH] Removed the -O and -OO switches to reduce confusion; they didn't work anyway. --- scripts/supybot | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/scripts/supybot b/scripts/supybot index a16554e81..d4e16adfb 100644 --- a/scripts/supybot +++ b/scripts/supybot @@ -128,7 +128,6 @@ if __name__ == '__main__': ### # Options: # -p (profiling) - # -O (optimizing) # -n, --nick (nick) # --startup (commands to run onStart) # --connect (commands to run afterConnect) @@ -137,9 +136,6 @@ if __name__ == '__main__': version='Supybot %s' % version) parser.add_option('-P', '--profile', action='store_true', dest='profile', help='enables profiling') - parser.add_option('-O', action='count', dest='optimize', - help='-O optimizes asserts out of the code; ' \ - '-OO optimizes asserts and uses psyco.') parser.add_option('-n', '--nick', action='store', dest='nick', default='', help='nick the bot should use') @@ -242,16 +238,6 @@ if __name__ == '__main__': # XXX We should turn off logging here for a prettier presentation. sys.exit(-1) - if options.optimize: - # This doesn't work anymore. - __builtins__.__debug__ = False - if options.optimize > 1: - try: - import psyco - psyco.full() - except ImportError: - log.warning('Psyco isn\'t installed, cannot -OO.') - if os.name == 'posix' and options.daemon: def fork(): child = os.fork()