diff options
author | ng0 <ng0@n0.is> | 2017-12-01 21:20:09 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2017-12-01 21:20:09 +0000 |
commit | 00c69d97d11b3da5d7ee41a9eeb7afa5c755c18d (patch) | |
tree | dbcc30f478c22a68e727568c90816ac6dd5fbca9 | |
parent | b285c08b871c4b28fcf46a7437ab2713f78b2891 (diff) | |
download | gnunet-python-00c69d97d11b3da5d7ee41a9eeb7afa5c755c18d.tar.gz gnunet-python-00c69d97d11b3da5d7ee41a9eeb7afa5c755c18d.zip |
PEP
-rw-r--r-- | gnunet/_dbus_utils.py | 5 | ||||
-rw-r--r-- | gnunet/dht.py | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/gnunet/_dbus_utils.py b/gnunet/_dbus_utils.py index 809ff26..bd9aa2a 100644 --- a/gnunet/_dbus_utils.py +++ b/gnunet/_dbus_utils.py | |||
@@ -1,3 +1,5 @@ | |||
1 | from gnunet import _Key, GNUNetDaemonError | ||
2 | import gnunet.strings as strings | ||
1 | import dbus | 3 | import dbus |
2 | import threading | 4 | import threading |
3 | import datetime | 5 | import datetime |
@@ -8,9 +10,6 @@ threads_init() | |||
8 | DBusGMainLoop(set_as_default=True) | 10 | DBusGMainLoop(set_as_default=True) |
9 | sysbus = dbus.SystemBus() | 11 | sysbus = dbus.SystemBus() |
10 | 12 | ||
11 | from gnunet import _Key, GNUNetDaemonError | ||
12 | import gnunet.strings as strings | ||
13 | |||
14 | 13 | ||
15 | class MainLoop(threading.Thread): | 14 | class MainLoop(threading.Thread): |
16 | def __init__(self): | 15 | def __init__(self): |
diff --git a/gnunet/dht.py b/gnunet/dht.py index 8f310a9..fc86e22 100644 --- a/gnunet/dht.py +++ b/gnunet/dht.py | |||
@@ -108,7 +108,7 @@ def get_start(callback, block_type, key, desired_replication_level, demultiplex_ | |||
108 | options += ["record_route"] | 108 | options += ["record_route"] |
109 | if bart: | 109 | if bart: |
110 | options += ["bart"] | 110 | options += ["bart"] |
111 | 111 | ||
112 | ret = None | 112 | ret = None |
113 | try: | 113 | try: |
114 | with requests_lock: | 114 | with requests_lock: |