Skip to content

Commit 1adeeb9

Browse files
committed
fixed code quality
1 parent 7ffe85f commit 1adeeb9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/protocol.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def checkIPAddress(host, private=False):
161161
hostStandardFormat = socket.inet_ntop(socket.AF_INET6, host)
162162
except ValueError:
163163
return False
164-
if len(hostStandardFormat) == 0:
164+
if hostStandardFormat:
165165
# This can happen on Windows systems which are
166166
# not 64-bit compatible so let us drop the IPv6 address.
167167
return False

src/tests/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
def cleanup(home=None, files=_files):
1414
"""Cleanup application files"""
1515
if not home:
16-
from pybitmessage import state
16+
import state
1717
home = state.appdata
1818
for pfile in files:
1919
try:

0 commit comments

Comments
 (0)