Skip to content

Commit 97d6e55

Browse files
committed
fix
1 parent 091e444 commit 97d6e55

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

datajoint/expression.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,5 @@ def _flatten_attribute_list(primary_key, attrs):
978978

979979

980980
def _wrap_attributes(attr):
981-
for entry in attr:
982-
wrapped_entry = re.sub(r"\b((?!asc|desc)\w+)\b", r"`\1`", entry, re.IGNORECASE)
983-
yield wrapped_entry # wrap attribute names in backquotes
981+
for entry in attr: # wrap attribute names in backquotes
982+
yield re.sub(r"\b((?!asc|desc)\w+)\b", r"`\1`", entry, flags=re.IGNORECASE)

0 commit comments

Comments
 (0)