From 015ee58e5d93082af6ab00322a2b77200eed3b4e Mon Sep 17 00:00:00 2001 From: s3goat <41472927+dimyme@users.noreply.github.com> Date: Thu, 20 Sep 2018 15:38:00 +0200 Subject: [PATCH] lint :-( --- src/bitmessagecurses/__init__.py | 40 ++++++++++++++++---------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/bitmessagecurses/__init__.py b/src/bitmessagecurses/__init__.py index 5a966ed5..668f45b8 100644 --- a/src/bitmessagecurses/__init__.py +++ b/src/bitmessagecurses/__init__.py @@ -1,4 +1,4 @@ -# pylint: disable=W291 +# pylint: disable=W0291 # trailing spaces, if any # Copyright (c) 2014 Luke Montalvo # This file adds a alternative commandline interface, feel free to critique and fork @@ -269,7 +269,7 @@ def handlech(c, stdscr): addr="" if c != curses.ERR: global inboxcur, addrcur, sentcur, subcur, abookcur, blackcur - if c in range(256): + if c in range(256): if chr(c) in '12345678': global menutab menutab = int(chr(c)) @@ -789,24 +789,24 @@ def sendMessage(sender="", recv="", broadcast=None, subject="", body="", reply=F scrollbox(d, unicode("Since you are not currently connected \ to the network, the BM will not be sent right now")) stealthLevel = BMConfigParser().safeGetInt('bitmessagesettings', 'ackstealthlevel') - #ackdata = genAckPayload(streamNumber, stealthLevel) - ackdata = genAckPayload( stealthLevel=stealthLevel) - sqlExecute("INSERT INTO sent VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", - "", - addr, - ripe, - sender, - subject, - body, - ackdata, - int(time.time()), # sentTime (this will never change) - int(time.time()), # lastActionTime - 0, # sleepTill time. This will get set when the POW gets done. - "msgqueued", - 0, # retryNumber - "sent", - 2, # encodingType - BMConfigParser().getint('bitmessagesettings', 'ttl')) + # ackdata = genAckPayload(streamNumber, stealthLevel) + ackdata = genAckPayload( stealthLevel=stealthLevel) + sqlExecute("INSERT INTO sent VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", + "", + addr, + ripe, + sender, + subject, + body, + ackdata, + int(time.time()), # sentTime (this will never change) + int(time.time()), # lastActionTime + 0, # sleepTill time. This will get set when the POW gets done. + "msgqueued", + 0, # retryNumber + "sent", + 2, # encodingType + BMConfigParser().getint('bitmessagesettings', 'ttl')) queues.workerQueue.put(("sendmessage", addr)) else: # Broadcast if recv == "":