Resolve wildcard imports

[chan] bitmessage <<Ext>>
Mar 13 09:50 [raw]

diff --git a/src/addresses.py b/src/addresses.py index c8caaf8..8b7fb32 100644 --- a/src/addresses.py +++ b/src/addresses.py @@ -1,5 +1,5 @@ import hashlib -from struct import * +from struct import pack, unpack from pyelliptic import arithmetic from binascii import hexlify, unhexlify diff --git a/src/bitmessagecurses/__init__.py b/src/bitmessagecurses/__init__.py index fc1d74b..2599bb1 100644 --- a/src/bitmessagecurses/__init__.py +++ b/src/bitmessagecurses/__init__.py @@ -10,7 +10,7 @@ import os import sys import StringIO -from textwrap import * +from textwrap import fill import time from time import strftime, localtime @@ -19,10 +19,10 @@ from threading import Timer import curses import dialog from dialog import Dialog -from helper_sql import * +from helper_sql import sqlExecute, sqlQuery from helper_ackPayload import genAckPayload -from addresses import * +from addresses import addBMIfNotPresent, decodeAddress import ConfigParser from bmconfigparser import BMConfigParser from inventory import Inventory diff --git a/src/bitmessageqt/account.py b/src/bitmessageqt/account.py index 92d497f..a817841 100644 --- a/src/bitmessageqt/account.py +++ b/src/bitmessageqt/account.py @@ -4,7 +4,7 @@ import queues import re import sys import inspect -from helper_sql import * +from helper_sql import sqlExecute, sqlQuery from helper_ackPayload import genAckPayload from addresses import decodeAddress from bmconfigparser import BMConfigParser diff --git a/src/bitmessageqt/foldertree.py b/src/bitmessageqt/foldertree.py index 11227fc..12a55c0 100644 --- a/src/bitmessageqt/foldertree.py +++ b/src/bitmessageqt/foldertree.py @@ -3,8 +3,8 @@ from string import find, rfind, rstrip, lstrip from tr import _translate from bmconfigparser import BMConfigParser -from helper_sql import * -from utils import * +from helper_sql import sqlExecute, sqlQuery +from utils import avatarize from settingsmixin import SettingsMixin # for pylupdate diff --git a/src/bitmessageqt/messageview.py b/src/bitmessageqt/messageview.py index 4d2e768..b6f6474 100644 --- a/src/bitmessageqt/messageview.py +++ b/src/bitmessageqt/messageview.py @@ -3,7 +3,7 @@ from PyQt4 import QtCore, QtGui import multiprocessing import Queue from urlparse import urlparse -from safehtmlparser import * +from safehtmlparser import SafeHTMLParser class MessageView(QtGui.QTextBrowser): MODE_PLAIN = 0 diff --git a/src/bitmessageqt/support.py b/src/bitmessageqt/support.py index 25c6113..a5b2269 100644 --- a/src/bitmessageqt/support.py +++ b/src/bitmessageqt/support.py @@ -9,7 +9,7 @@ from bmconfigparser import BMConfigParser from debug import logger import defaults from foldertree import AccountMixin -from helper_sql import * +from helper_sql import sqlExecute, sqlQuery from l10n import getTranslationLanguage from openclpow import openclAvailable, openclEnabled import paths diff --git a/src/class_addressGenerator.py b/src/class_addressGenerator.py index bd377c1..128c9b2 100644 --- a/src/class_addressGenerator.py +++ b/src/class_addressGenerator.py @@ -6,11 +6,11 @@ from pyelliptic.openssl import OpenSSL import ctypes import hashlib import highlevelcrypto -from addresses import * +from addresses import decodeAddress, encodeAddress, encodeVarint from bmconfigparser import BMConfigParser from debug import logger import defaults -from helper_threading import * +from helper_threading import StoppableThread from pyelliptic import arithmetic import tr from binascii import hexlify diff --git a/src/class_objectProcessor.py b/src/class_objectProcessor.py index 181ce30..13f510a 100644 --- a/src/class_objectProcessor.py +++ b/src/class_objectProcessor.py @@ -12,7 +12,8 @@ from binascii import hexlify from pyelliptic.openssl import OpenSSL import highlevelcrypto -from addresses import * +from addresses import (calculateInventoryHash, decodeAddress, decodeVarint, + encodeAddress, encodeVarint, varintDecodeError) from bmconfigparser import BMConfigParser import helper_generic from helper_generic import addDataPadding @@ -20,7 +21,7 @@ import helper_bitcoin import helper_inbox import helper_msgcoding import helper_sent -from helper_sql import * +from helper_sql import SqlBulkExecute, sqlExecute, sqlQuery from helper_ackPayload import genAckPayload import protocol import queues diff --git a/src/class_singleCleaner.py b/src/class_singleCleaner.py index ca77881..563e4d3 100644 --- a/src/class_singleCleaner.py +++ b/src/class_singleCleaner.py @@ -6,8 +6,8 @@ import os import tr#anslate from bmconfigparser import BMConfigParser -from helper_sql import * -from helper_threading import * +from helper_sql import sqlExecute, sqlQuery +from helper_threading import StoppableThread from inventory import Inventory from network.connectionpool import BMConnectionPool from debug import logger diff --git a/src/class_singleWorker.py b/src/class_singleWorker.py index 90db23c..0bcd49a 100644 --- a/src/class_singleWorker.py +++ b/src/class_singleWorker.py @@ -1,12 +1,14 @@ from __future__ import division +import hashlib import threading import shared import time +from struct import pack from time import strftime, localtime, gmtime import random from subprocess import call # used when the API must execute an outside program -from addresses import * +from addresses import calculateInventoryHash, decodeAddress, decodeVarint, encodeVarint import highlevelcrypto import proofofwork import sys @@ -14,11 +16,11 @@ import tr from bmconfigparser import BMConfigParser from debug import logger import defaults -from helper_sql import * +from helper_sql import sqlExecute, sqlQuery import helper_inbox from helper_generic import addDataPadding import helper_msgcoding -from helper_threading import * +from helper_threading import StoppableThread from inventory import Inventory import l10n import protocol diff --git a/src/class_smtpDeliver.py b/src/class_smtpDeliver.py index bb659eb..3c164e3 100644 --- a/src/class_smtpDeliver.py +++ b/src/class_smtpDeliver.py @@ -7,7 +7,7 @@ import urlparse from bmconfigparser import BMConfigParser from debug import logger -from helper_threading import * +from helper_threading import StoppableThread import queues import state diff --git a/src/defaultKnownNodes.py b/src/defaultKnownNodes.py index 05b6501..fd2fcd1 100644 --- a/src/defaultKnownNodes.py +++ b/src/defaultKnownNodes.py @@ -1,6 +1,5 @@ import pickle import socket -from struct import * import time import random import sys diff --git a/src/helper_inbox.py b/src/helper_inbox.py index 3506150..54ec326 100644 --- a/src/helper_inbox.py +++ b/src/helper_inbox.py @@ -1,4 +1,4 @@ -from helper_sql import * +from helper_sql import sqlExecute, sqlQuery import queues def insert(t): diff --git a/src/helper_search.py b/src/helper_search.py index 2217974..2823beb 100644 --- a/src/helper_search.py +++ b/src/helper_search.py @@ -1,6 +1,6 @@ #!/usr/bin/python2.7 -from helper_sql import * +from helper_sql import sqlQuery try: from PyQt4 import QtCore, QtGui diff --git a/src/helper_sent.py b/src/helper_sent.py index 8dde721..89e7a41 100644 --- a/src/helper_sent.py +++ b/src/helper_sent.py @@ -1,4 +1,4 @@ -from helper_sql import * +from helper_sql import sqlExecute def insert(t): sqlExecute('''INSERT INTO sent VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)''', *t) diff --git a/src/inventory.py b/src/inventory.py index 5467773..f547930 100644 --- a/src/inventory.py +++ b/src/inventory.py @@ -6,7 +6,6 @@ import time import sys from bmconfigparser import BMConfigParser -from helper_sql import * from singleton import Singleton # TODO make this dynamic, and watch out for frozen, like with messagetypes diff --git a/src/qidenticon.py b/src/qidenticon.py index cc3af6b..e2c03b9 100644 --- a/src/qidenticon.py +++ b/src/qidenticon.py @@ -51,8 +51,8 @@ Return a PIL Image class instance which have generated identicon image. # we probably don't need all of them, but i don't want to check now from PyQt4 import QtCore, QtGui -from PyQt4.QtCore import * -from PyQt4.QtGui import * +from PyQt4.QtCore import QPointF, QSize, Qt +from PyQt4.QtGui import QPainter, QPixmap, QPolygonF __all__ = ['render_identicon', 'IdenticonRendererBase'] diff --git a/src/shared.py b/src/shared.py index e2f3c1c..f570d37 100644 --- a/src/shared.py +++ b/src/shared.py @@ -8,6 +8,7 @@ useVeryEasyProofOfWorkForTesting = False # If you set this to True while on the # Libraries. +import hashlib import os import sys import stat @@ -15,14 +16,16 @@ import threading import time import traceback from binascii import hexlify +from struct import unpack # Project imports. -from addresses import * +from addresses import calculateInventoryHash, decodeAddress, decodeVarint, encodeVarint, varintDecodeError from bmconfigparser import BMConfigParser import highlevelcrypto #import helper_startup -from helper_sql import * +from helper_sql import sqlExecute, sqlQuery from inventory import Inventory +from pyelliptic import arithmetic from queues import objectProcessorQueue import protocol import state diff --git a/src/storage/sqlite.py b/src/storage/sqlite.py index 438cbdc..cfe2122 100644 --- a/src/storage/sqlite.py +++ b/src/storage/sqlite.py @@ -4,7 +4,7 @@ import Queue import sqlite3 import time -from helper_sql import * +from helper_sql import SqlBulkExecute, sqlExecute, sqlQuery from storage import InventoryStorage, InventoryItem class SqliteInventory(InventoryStorage): diff --git a/src/upnp.py b/src/upnp.py index 46d5595..03877b1 100644 --- a/src/upnp.py +++ b/src/upnp.py @@ -8,7 +8,7 @@ import threading import time from bmconfigparser import BMConfigParser from network.connectionpool import BMConnectionPool -from helper_threading import * +from helper_threading import StoppableThread import queues import shared import state

[chan] bitmessage
BM-2cWy7cvHoq3f1rYMerRJp8PT653jjSuEdY

Subject Last Count
Air Gapped Bitmessage? Jun 23 11:02 4
Why did all my messages vanish? Jun 23 02:57 8
Feature request Jun 23 01:58 2
Reminder Jun 23 01:25 2
Inbox bug Jun 22 20:25 7
potential bitmessage feature Jun 22 19:57 1
Integration with GPG (GnuPG) Jun 22 19:51 6
A question Jun 22 03:39 11
D2A41B229F7BCE6F9B429D3E33A47598 Jun 21 23:39 2
asyncronous data Jun 21 19:37 7
Patch 2 Jun 20 23:05 3
Patch Jun 20 07:36 2
onionscan update Jun 19 22:43 9
PyBitmessage Security Scan on Branch v0.6 Jun 19 12:02 50
Feature request: delete all messages from user Jun 19 05:52 3
ERROR - Too many items in inv message! Jun 19 05:45 15
Feature request: delete all messages from user Jun 18 23:40 1
test Jun 18 23:24 5
attack? Jun 18 22:10 3
a GOOD implementation of 2fa for conventional email please! Jun 18 21:03 1
unpickling knownnodes to a readable format Jun 18 04:43 27
WARNING - Probably wrong category number in playSound() Jun 17 09:41 1
I don't receive any BMs when I have only one peer. Jun 16 17:13 6
identicon code bug? Jun 16 06:35 1
Free Git Replacement Jun 15 17:31 8
github Jun 15 04:35 1
Latest git pull: inbox doesn't update Jun 15 03:55 4
IPFS Jun 13 21:48 8
latest in the spy world Jun 13 19:14 2
(no subject) Jun 13 19:12 1
TIMESERVICE Jun 13 19:05 1
Questions about BM nodes Jun 12 22:53 7
Why not reject old clients from connection to the network? Jun 12 19:18 10
Add an option to connect only to onions Jun 12 00:42 2
Help Improving Algorithm Jun 11 23:48 3
hey - why not make pyBM as shitty as "Signal-App" by Marlinspike ? Jun 11 21:53 1
Silence debug.log foe less disk-write Jun 11 14:44 4
Questions about "Max acceptable difficulty" Jun 11 04:24 2
"Post to BM" API Jun 10 12:11 5
"Configuration NOT changed" Jun 10 09:41 2
Error/Warnings in debug log: Should I worry? Jun 10 09:34 1
Bitmessage Security Test: ZWD attempt Jun 10 08:05 1
bitmessage inaccessible Jun 10 08:04 1
mailchuck.com email gateway Jun 10 07:47 3
Microsoft owns GitHub Jun 9 15:23 1
NIST key management guidelines suggest that 15360-bit RSA keys are equivalent in strength to 256-bit symmetric keys… Jun 9 11:25 12
Cloudflare MITM blocker Jun 9 11:21 4
GitHub Jun 9 11:16 15
Improvement of Trustedpeer setting Jun 6 06:26 2
blank blank blank Jun 6 06:26 5
is multiple trustedpeers possible? Jun 6 01:00 7
Bitmessage Documentation Bug Jun 2 10:09 4
REAL security experts endorse "security by obscurity" May 31 13:22 7
TRUE LOVE May 31 06:38 1
PyBitmessage Security ... Security Levels May 30 04:56 2
How to force BM to use only .onion nodes? May 30 04:56 15
Dread May 29 16:31 1
6F3F2CF9891928A25B71BBC4707B8753 May 29 10:56 1
SMTP and IMAP integration in the client May 29 06:21 5
Bitmessage Wiki Blocked May 29 00:51 12
Desiderata May 28 20:07 2
Bitmessage Bug May 28 17:15 2
I solved the Bitmessage Captcha Puzzle! May 28 08:56 2
setup trusted peer question May 28 08:05 6
bitmessagemain from pyinstaller executable won't run May 28 07:41 4
help with messages.dat May 28 07:36 7
Roll Your Own Crypto! May 28 07:06 6
look closely May 27 18:33 5
How to use chan alt.anonymous.messages May 27 08:21 2
feature request May 27 01:34 10