mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Removed the -O and -OO switches to reduce confusion; they didn't work anyway.
This commit is contained in:
parent
660776f804
commit
b59742dd35
@ -128,7 +128,6 @@ if __name__ == '__main__':
|
|||||||
###
|
###
|
||||||
# Options:
|
# Options:
|
||||||
# -p (profiling)
|
# -p (profiling)
|
||||||
# -O (optimizing)
|
|
||||||
# -n, --nick (nick)
|
# -n, --nick (nick)
|
||||||
# --startup (commands to run onStart)
|
# --startup (commands to run onStart)
|
||||||
# --connect (commands to run afterConnect)
|
# --connect (commands to run afterConnect)
|
||||||
@ -137,9 +136,6 @@ if __name__ == '__main__':
|
|||||||
version='Supybot %s' % version)
|
version='Supybot %s' % version)
|
||||||
parser.add_option('-P', '--profile', action='store_true', dest='profile',
|
parser.add_option('-P', '--profile', action='store_true', dest='profile',
|
||||||
help='enables profiling')
|
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',
|
parser.add_option('-n', '--nick', action='store',
|
||||||
dest='nick', default='',
|
dest='nick', default='',
|
||||||
help='nick the bot should use')
|
help='nick the bot should use')
|
||||||
@ -242,16 +238,6 @@ if __name__ == '__main__':
|
|||||||
# XXX We should turn off logging here for a prettier presentation.
|
# XXX We should turn off logging here for a prettier presentation.
|
||||||
sys.exit(-1)
|
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:
|
if os.name == 'posix' and options.daemon:
|
||||||
def fork():
|
def fork():
|
||||||
child = os.fork()
|
child = os.fork()
|
||||||
|
Loading…
Reference in New Issue
Block a user