mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-26 03:54:08 +01:00
Merge pull request #925 from GLolol/debug/remove-duplicate-progstats
Debug: remove duplicate 'progstats' cmd preventing the plugin from loading on win32
This commit is contained in:
commit
9c5d16eab9
@ -38,7 +38,6 @@ import supybot.plugins as plugins
|
|||||||
|
|
||||||
import gc
|
import gc
|
||||||
import os
|
import os
|
||||||
import pwd
|
|
||||||
import sys
|
import sys
|
||||||
try:
|
try:
|
||||||
import exceptions
|
import exceptions
|
||||||
@ -187,22 +186,6 @@ class Debug(callbacks.Privmsg):
|
|||||||
irc.reply(format('%L', list(map(str, L))))
|
irc.reply(format('%L', list(map(str, L))))
|
||||||
collect = wrap(collect, [additional('positiveInt', 1)])
|
collect = wrap(collect, [additional('positiveInt', 1)])
|
||||||
|
|
||||||
_progstats_endline_remover = utils.str.MultipleRemover('\r\n')
|
|
||||||
def progstats(self, irc, msg, args):
|
|
||||||
"""takes no arguments
|
|
||||||
|
|
||||||
Returns various unix-y information on the running supybot process.
|
|
||||||
"""
|
|
||||||
pw = pwd.getpwuid(os.getuid())
|
|
||||||
response = 'Process ID %s running as user "%s" and as group "%s" ' \
|
|
||||||
'from directory "%s" with the command line "%s". ' \
|
|
||||||
'Running on Python %s.' % \
|
|
||||||
(os.getpid(), pw[0], pw[3],
|
|
||||||
os.getcwd(), ' '.join(sys.argv),
|
|
||||||
self._progstats_endline_remover(sys.version))
|
|
||||||
irc.reply(response)
|
|
||||||
progstats = wrap(progstats)
|
|
||||||
|
|
||||||
def environ(self, irc, msg, args):
|
def environ(self, irc, msg, args):
|
||||||
"""takes no arguments
|
"""takes no arguments
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user