commit ced0cc03811c8489ace30ff1ed0d46f73ba4a3ba
parent bc4dcd80611d1c2e876f6782a0d2a6436631e49a
Author: chris-belcher <chris-belcher@users.noreply.github.com>
Date: Thu, 5 Dec 2019 09:14:40 +0000
Put imports on seperate lines to comply with pep8
https://www.python.org/dev/peps/pep-0008/#imports
Diffstat:
4 files changed, 25 insertions(+), 9 deletions(-)
diff --git a/electrumpersonalserver/server/common.py b/electrumpersonalserver/server/common.py
@@ -1,11 +1,21 @@
-import socket, time, json, datetime, struct, binascii, ssl, os, os.path
-from configparser import RawConfigParser, NoSectionError, NoOptionError
-from collections import defaultdict
-import traceback, sys, platform
-from ipaddress import ip_network, ip_address
+import socket
+import time
+import json
+import datetime
+import struct
+import binascii
+import ssl
+import os
+import os.path
import logging
import tempfile
import socket
+import traceback
+import sys
+import platform
+from configparser import RawConfigParser, NoSectionError, NoOptionError
+from collections import defaultdict
+from ipaddress import ip_network, ip_address
from electrumpersonalserver.server.jsonrpc import JsonRpc, JsonRpcError
import electrumpersonalserver.server.hashes as hashes
diff --git a/electrumpersonalserver/server/hashes.py b/electrumpersonalserver/server/hashes.py
@@ -1,5 +1,7 @@
-import hashlib, binascii, math
+import hashlib
+import binascii
+import math
## stuff copied from electrum's source
diff --git a/electrumpersonalserver/server/peertopeer.py b/electrumpersonalserver/server/peertopeer.py
@@ -1,6 +1,7 @@
#! /usr/bin/env python
-import socket, time
+import socket
+import time
import base64
import threading
import random
diff --git a/electrumpersonalserver/server/transactionmonitor.py b/electrumpersonalserver/server/transactionmonitor.py
@@ -1,8 +1,11 @@
-import time, pprint, math, sys
+import time
+import pprint
+import math
+import sys
+import logging
from decimal import Decimal
from collections import defaultdict
-import logging
from electrumpersonalserver.server.jsonrpc import JsonRpcError
from electrumpersonalserver.server.hashes import (