Skip to content

Commit 17f085c

Browse files
yqshaovkarak
andauthored
Apply style suggestions from code review
Co-authored-by: Vasileios Karakasis <[email protected]>
1 parent a068cbb commit 17f085c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reframe/core/schedulers/slurm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,10 +741,10 @@ def satisfies(self, slurm_constraint):
741741
return False
742742

743743
expr = re.sub(
744-
"[\-\w]+",
744+
r'[\-\w]+',
745745
lambda m: str(m.group(0) in self.active_features),
746746
slurm_constraint
747-
).replace("|", " or ").replace("&", " and ")
747+
).replace('|', ' or ').replace('&', ' and ')
748748

749749
try:
750750
return eval(expr)

0 commit comments

Comments
 (0)