clean pylints

This commit is contained in:
emdee 2022-09-24 02:55:48 +00:00
parent ff4b240262
commit cc6e2c6116
3 changed files with 42 additions and 40 deletions

2
.gitignore vendored
View File

@ -160,3 +160,5 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
.pylint.err
.pylint.log

View File

@ -1,5 +1,3 @@
# -*- mode: text; indent-tabs-mode: nil; coding: utf-8 -*-
# tox_profile
Read and manipulate tox profile files. It started as a simple script from

View File

@ -1,12 +1,16 @@
# -*- mode: python; indent-tabs-mode: nil; py-indent-offset: 4; coding: utf-8 -*-
# originally from:
# https://stackoverflow.com/questions/30901873/what-format-are-tox-files-stored-in
import sys
import os
import struct
from socket import inet_ntop, AF_INET6, AF_INET
import logging
try:
# https://pypi.org/project/msgpack/
import msgpack
except ImportError as e:
msgpack = None
@ -31,8 +35,6 @@ try:
except ImportError as e:
coloredlogs = False
global LOG
import logging
LOG = logging.getLogger()
#messenger.c
@ -195,7 +197,7 @@ The integers in this structure are stored in Big Endian format.
LOG.info(f"Friend #{i} {dStatus[status]} {name} {pk}")
elif data_type == MESSENGER_STATE_TYPE_NAME:
LOG.info("User name = {}".format(str(state[index + 8:index + 8 + length], 'utf-8')))
LOG.info("User name = " +str(state[index + 8:index + 8 + length], 'utf-8'))
elif data_type == MESSENGER_STATE_TYPE_STATUSMESSAGE:
LOG.info(f"StatusMessage = {str(state[index + 8:index + 8 + length], 'utf-8')}")
@ -275,7 +277,7 @@ called the “packed node format”.
Length Type Contents
1 bit Transport Protocol UDP = 0, TCP = 1
7 bit Address Family 2 = IPv4, 10 = IPv6
4 \| 16 IP address 4 bytes for IPv4, 16 bytes for IPv6
4 | 16 IP address 4 bytes for IPv4, 16 bytes for IPv6
2 Port Number Port number
32 Public Key Node ID