Skip to content

Commit

Permalink
api: abstract_paths_from_template sequence key - black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis committed Aug 21, 2020
1 parent 8ad1831 commit f303f4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion python/tank/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,9 @@ def abstract_paths_from_template(self, template, fields):
skip_keys.append(k)

# now carry out a regular search based on the template
found_files = self.paths_from_template(search_template, fields, skip_keys=skip_keys)
found_files = self.paths_from_template(
search_template, fields, skip_keys=skip_keys
)

# now collapse down the search matches for any abstract fields,
# and add the leaf level if necessary
Expand Down
4 changes: 3 additions & 1 deletion python/tank/templatekey.py
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,9 @@ def validate(self, value):
return super(SequenceKey, self).validate(value)

def is_framespec_format(self, value):
return isinstance(value, six.string_types) and value.startswith(self.FRAMESPEC_FORMAT_INDICATOR)
return isinstance(value, six.string_types) and value.startswith(
self.FRAMESPEC_FORMAT_INDICATOR
)

def _as_string(self, value):
if self.is_framespec_format(value):
Expand Down

0 comments on commit f303f4c

Please sign in to comment.