Replace python2.7 by python everywhere.
This commit is contained in:
parent
a21cb61b3f
commit
e786295352
|
@ -93,11 +93,11 @@ class IRCBot(irc.bot.SingleServerIRCBot):
|
||||||
return
|
return
|
||||||
self.dcc_connect(address, port)
|
self.dcc_connect(address, port)
|
||||||
|
|
||||||
usage = """python2.7 irc-mirror.py --server=IRC_SERVER --channel=<CHANNEL> --nick-prefix=<NICK> [optional args]
|
usage = """python irc-mirror.py --server=IRC_SERVER --channel=<CHANNEL> --nick-prefix=<NICK> [optional args]
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
python2.7 irc-mirror.py --irc-server=127.0.0.1 --channel='#test' --nick-prefix=username
|
python irc-mirror.py --irc-server=127.0.0.1 --channel='#test' --nick-prefix=username
|
||||||
--site=https://zulip.example.com --user=irc-bot@example.com
|
--site=https://zulip.example.com --user=irc-bot@example.com
|
||||||
--api-key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
--api-key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ import stat
|
||||||
try:
|
try:
|
||||||
from subprocess import CalledProcessError
|
from subprocess import CalledProcessError
|
||||||
except ImportError:
|
except ImportError:
|
||||||
# from python2.7:subprocess.py
|
# from python:subprocess.py
|
||||||
# Exception classes used by this module.
|
# Exception classes used by this module.
|
||||||
class CalledProcessError(Exception):
|
class CalledProcessError(Exception):
|
||||||
"""This exception is raised when a process run by check_call() returns
|
"""This exception is raised when a process run by check_call() returns
|
||||||
|
|
Loading…
Reference in a new issue