Skip to content

Commit 1bd137b

Browse files
committed
fixed black formatting
1 parent 00acd0d commit 1bd137b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

datajoint/expression.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,11 @@ def proj(self, *attributes, **named_attributes):
342342
"""
343343
# new attributes in parentheses are included again with the new name without removing original
344344
duplication_pattern = re.compile(
345-
fr'^\s*\(\s*(?!{"|".join(CONSTANT_LITERALS)})(?P<name>[a-zA-Z_]\w*)\s*\)\s*$'
345+
rf'^\s*\(\s*(?!{"|".join(CONSTANT_LITERALS)})(?P<name>[a-zA-Z_]\w*)\s*\)\s*$'
346346
)
347347
# attributes without parentheses renamed
348348
rename_pattern = re.compile(
349-
fr'^\s*(?!{"|".join(CONSTANT_LITERALS)})(?P<name>[a-zA-Z_]\w*)\s*$'
349+
rf'^\s*(?!{"|".join(CONSTANT_LITERALS)})(?P<name>[a-zA-Z_]\w*)\s*$'
350350
)
351351
replicate_map = {
352352
k: m.group("name")

datajoint/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,12 @@ def __getitem__(self, key):
239239

240240
def __setitem__(self, key, value):
241241
logger.log(
242-
logging.INFO, u"Setting {0:s} to {1:s}".format(str(key), str(value))
242+
logging.INFO, "Setting {0:s} to {1:s}".format(str(key), str(value))
243243
)
244244
if validators[key](value):
245245
self._conf[key] = value
246246
else:
247-
raise DataJointError(u"Validator for {0:s} did not pass".format(key))
247+
raise DataJointError("Validator for {0:s} did not pass".format(key))
248248

249249

250250
# Load configuration from file

datajoint/table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ def check_fields(fields):
866866
for field in fields:
867867
if field not in self.heading:
868868
raise KeyError(
869-
u"`{0:s}` is not in the table heading".format(field)
869+
"`{0:s}` is not in the table heading".format(field)
870870
)
871871
elif set(field_list) != set(fields).intersection(self.heading.names):
872872
raise DataJointError("Attempt to insert rows with different fields.")

0 commit comments

Comments
 (0)