From 4a369f70c1fe8907e84014dcd753a0d92efdc6e1 Mon Sep 17 00:00:00 2001 From: lakshyacis Date: Mon, 23 Dec 2019 15:19:03 +0530 Subject: [PATCH] formatting and docstring --- src/class_objectProcessor.py | 12 +++++++----- src/class_smtpDeliver.py | 3 +-- src/helper_sent.py | 3 ++- src/multiqueue.py | 4 ++-- src/proofofwork.py | 3 +-- 5 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/class_objectProcessor.py b/src/class_objectProcessor.py index 2c741661..1a2f7751 100644 --- a/src/class_objectProcessor.py +++ b/src/class_objectProcessor.py @@ -149,11 +149,13 @@ class objectProcessor(threading.Thread): 'ackreceived', int(time.time()), data[readPosition:]) queues.UISignalQueue.put(( 'updateSentItemStatusByAckdata', - (data[readPosition:], - tr._translate( - "MainWindow", - "Acknowledgement of the message received %1" - ).arg(l10n.formatTimestamp())) + ( + data[readPosition:], + tr._translate( + "MainWindow", + "Acknowledgement of the message received %1" + ).arg(l10n.formatTimestamp()) + ) )) else: logger.debug('This object is not an acknowledgement bound for me.') diff --git a/src/class_smtpDeliver.py b/src/class_smtpDeliver.py index 58cd4631..14df14c9 100644 --- a/src/class_smtpDeliver.py +++ b/src/class_smtpDeliver.py @@ -1,6 +1,5 @@ """ -src/class_smtpDeliver.py -======================== +SMTP client thread for delivering emails """ # pylint: disable=unused-variable diff --git a/src/helper_sent.py b/src/helper_sent.py index 5a345fe7..bc3362e8 100644 --- a/src/helper_sent.py +++ b/src/helper_sent.py @@ -2,7 +2,8 @@ Insert values into sent table """ -from helper_sql import * +from helper_sql import sqlExecute + def insert(t): """Perform an insert into the `sent` table""" diff --git a/src/multiqueue.py b/src/multiqueue.py index 8c64d33d..d7c10847 100644 --- a/src/multiqueue.py +++ b/src/multiqueue.py @@ -1,6 +1,6 @@ """ -src/multiqueue.py -================= +A queue with multiple internal subqueues. +Elements are added into a random subqueue, and retrieval rotates """ import Queue diff --git a/src/proofofwork.py b/src/proofofwork.py index bb16951c..e43e0f02 100644 --- a/src/proofofwork.py +++ b/src/proofofwork.py @@ -1,7 +1,6 @@ # pylint: disable=too-many-branches,too-many-statements,protected-access """ -src/proofofwork.py -================== +Proof of work calculation """ import ctypes