Cleanup: reformat with Black

This commit is contained in:
Sybren A. Stüvel
2022-03-25 12:07:06 +01:00
parent 3daeb9f80a
commit 63c4745e9f
4 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -39,11 +39,11 @@ def expand_sequence(path: pathlib.Path) -> typing.Iterator[pathlib.Path]:
or the path of the first file in the sequence.
"""
if "<UDIM>" in path.name: # UDIM tiles
if "<UDIM>" in path.name: # UDIM tiles
# Change <UDIM> marker to a glob pattern, then let the glob case handle it.
# This assumes that all files that match the glob are actually UDIM
# tiles; this could cause some false-positives.
path = path.with_name(path.name.replace('<UDIM>', '*'))
path = path.with_name(path.name.replace("<UDIM>", "*"))
if "*" in str(path): # assume it is a glob
import glob