Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mig/server/grid_imnotify.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# grid_imnotify - IM notifier daemon
# Copyright (C) 2003-2020 The MiG Project lead by Brian Vinter
# Copyright (C) 2003-2026 The MiG Project by the Science HPC Center at UCPH
#
# This file is part of MiG.
#
Expand All @@ -20,7 +20,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Check warning on line 23 in mig/server/grid_imnotify.py

View workflow job for this annotation

GitHub Actions / Style check python and annotate

line too long (81 > 80 characters)

Check warning on line 23 in mig/server/grid_imnotify.py

View workflow job for this annotation

GitHub Actions / Style check python and annotate

line too long (81 > 80 characters)
#
# -- END_HEADER ---
#
Expand Down Expand Up @@ -54,19 +54,19 @@

from future import standard_library
standard_library.install_aliases()
from builtins import range

Check warning on line 57 in mig/server/grid_imnotify.py

View workflow job for this annotation

GitHub Actions / Style check python and annotate

module level import not at top of file

Check warning on line 57 in mig/server/grid_imnotify.py

View workflow job for this annotation

GitHub Actions / Style check python and annotate

module level import not at top of file
import os

Check warning on line 58 in mig/server/grid_imnotify.py

View workflow job for this annotation

GitHub Actions / Style check python and annotate

module level import not at top of file

Check warning on line 58 in mig/server/grid_imnotify.py

View workflow job for this annotation

GitHub Actions / Style check python and annotate

module level import not at top of file
import sys

Check warning on line 59 in mig/server/grid_imnotify.py

View workflow job for this annotation

GitHub Actions / Style check python and annotate

module level import not at top of file

Check warning on line 59 in mig/server/grid_imnotify.py

View workflow job for this annotation

GitHub Actions / Style check python and annotate

module level import not at top of file
import time

Check warning on line 60 in mig/server/grid_imnotify.py

View workflow job for this annotation

GitHub Actions / Style check python and annotate

module level import not at top of file

Check warning on line 60 in mig/server/grid_imnotify.py

View workflow job for this annotation

GitHub Actions / Style check python and annotate

module level import not at top of file
import _thread

Check warning on line 61 in mig/server/grid_imnotify.py

View workflow job for this annotation

GitHub Actions / Style check python and annotate

module level import not at top of file

Check warning on line 61 in mig/server/grid_imnotify.py

View workflow job for this annotation

GitHub Actions / Style check python and annotate

module level import not at top of file

try:
import irclib
except ImportError:
irclib = None

from mig.shared.conf import get_configuration_object

Check warning on line 68 in mig/server/grid_imnotify.py

View workflow job for this annotation

GitHub Actions / Style check python and annotate

module level import not at top of file

Check warning on line 68 in mig/server/grid_imnotify.py

View workflow job for this annotation

GitHub Actions / Style check python and annotate

module level import not at top of file
from mig.shared.logger import daemon_logger, register_hangup_handler

Check warning on line 69 in mig/server/grid_imnotify.py

View workflow job for this annotation

GitHub Actions / Style check python and annotate

module level import not at top of file

Check warning on line 69 in mig/server/grid_imnotify.py

View workflow job for this annotation

GitHub Actions / Style check python and annotate

module level import not at top of file

getting_buddy_list = False
protocol_online_dict = {
Expand Down Expand Up @@ -101,7 +101,7 @@
got_online = False
for _ in range(30):
if not protocol_online_dict[im_network]:
print('waiting for protocol %s to get online (status for all protocols: %s)'

Check warning on line 104 in mig/server/grid_imnotify.py

View workflow job for this annotation

GitHub Actions / Style check python and annotate

line too long (88 > 80 characters)

Check warning on line 104 in mig/server/grid_imnotify.py

View workflow job for this annotation

GitHub Actions / Style check python and annotate

line too long (88 > 80 characters)
% (im_network, protocol_online_dict))
time.sleep(2)
else:
Expand Down Expand Up @@ -208,7 +208,7 @@

def get_account_number(im_network):

# TODO: automatically get account numbers by calling and parsing an "account list" call

Check warning on line 211 in mig/server/grid_imnotify.py

View workflow job for this annotation

GitHub Actions / Style check python and annotate

line too long (91 > 80 characters)

Check warning on line 211 in mig/server/grid_imnotify.py

View workflow job for this annotation

GitHub Actions / Style check python and annotate

line too long (91 > 80 characters)

if im_network == 'msn':
return 0
Expand Down Expand Up @@ -294,7 +294,7 @@
# login to bitlbee

login_msg = 'identify %s' % bitlbee_password
print(login_msg)
print('identify **REDACTED**')
connection.privmsg('root', login_msg)
else:
print('someone joined channel: %s'
Expand All @@ -305,7 +305,7 @@
sys.exit(0)


def irc_process_forever(*args):

Check failure on line 308 in mig/server/grid_imnotify.py

View workflow job for this annotation

GitHub Actions / Style check python and annotate

unused variable 'args' (100% confidence)

Check failure on line 308 in mig/server/grid_imnotify.py

View workflow job for this annotation

GitHub Actions / Style check python and annotate

unused variable 'args' (100% confidence)
irc.process_forever()


Expand Down
Loading