Skip to content

Commit b432c01

Browse files
Fix style.
1 parent 1060b87 commit b432c01

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

datajoint/attribute_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def get_adapter(context, adapter_name):
4040
adapter_name = adapter_name.lstrip('<').rstrip('>')
4141
try:
4242
adapter = (context[adapter_name] if adapter_name in context
43-
else type_plugins[adapter_name]['object'].load())
43+
else type_plugins[adapter_name]['object'].load())
4444
except KeyError:
4545
raise DataJointError(
4646
"Attribute adapter '{adapter_name}' is not defined.".format(adapter_name=adapter_name))

datajoint/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def conn(host=None, user=None, password=None, *, init_fun=None, reset=False, use
112112
init_fun = init_fun if init_fun is not None else config['connection.init_function']
113113
use_tls = use_tls if use_tls is not None else config['database.use_tls']
114114
conn.connection = Connection(host, user, password, None, init_fun, use_tls,
115-
host_input=host_input)
115+
host_input=host_input)
116116
return conn.connection
117117

118118

@@ -132,7 +132,7 @@ class Connection:
132132
"""
133133

134134
def __init__(self, host, user, password, port=None, init_fun=None, use_tls=None,
135-
host_input=None):
135+
host_input=None):
136136
if ':' in host:
137137
# the port in the hostname overrides the port argument
138138
host, port = host.split(':')

datajoint/errors.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ def __init__(self, *args):
1919
from .plugin import connection_plugins, type_plugins
2020
self.__cause__ = PluginWarning(
2121
'Unverified DataJoint plugin detected.') if any([any(
22-
[not plugins[k]['verified'] for k in plugins])
23-
for plugins in [connection_plugins, type_plugins]
24-
if plugins]) else None
22+
[not plugins[k]['verified'] for k in plugins])
23+
for plugins in [connection_plugins, type_plugins]
24+
if plugins]) else None
2525

2626
def suggest(self, *args):
2727
"""

datajoint/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def _update_error_stack(plugin_name):
2525
def _import_plugins(category):
2626
return {
2727
entry_point.name: dict(object=entry_point,
28-
verified=_update_error_stack(
28+
verified=_update_error_stack(
2929
entry_point.module_name.split('.')[0]))
3030
for entry_point
3131
in pkg_resources.iter_entry_points('datajoint_plugins.{}'.format(category))

0 commit comments

Comments
 (0)