Skip to content

Commit a1b7df0

Browse files
PEP 8
1 parent 64d9ee3 commit a1b7df0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

datajoint/blob.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def pack_set(self, t):
346346

347347
def read_dict(self):
348348
return dict((self.read_blob(self.read_value()), self.read_blob(self.read_value()))
349-
for _ in range(self.read_value()))
349+
for _ in range(self.read_value()))
350350

351351
def pack_dict(self, d):
352352
return b"\4" + len_u64(d) + b"".join(

datajoint/fetch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ def __call__(self, *attrs, squeeze=False, download_path='.'):
238238
if not ret or cur.fetchone():
239239
raise DataJointError('fetch1 should only be used for relations with exactly one tuple')
240240
ret = dict((name, _get(self._expression.connection, heading[name], ret[name],
241-
squeeze=squeeze, download_path=download_path))
242-
for name in heading.names)
241+
squeeze=squeeze, download_path=download_path))
242+
for name in heading.names)
243243
else: # fetch some attributes, return as tuple
244244
attributes = [a for a in attrs if not is_key(a)]
245245
result = self._expression.proj(*attributes).fetch(squeeze=squeeze, download_path=download_path)

0 commit comments

Comments
 (0)