mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
removed unused StringType
This commit is contained in:
parent
4c7bacdb72
commit
89d0bc7a47
2 changed files with 4 additions and 8 deletions
|
|
@ -6,8 +6,6 @@ import copy
|
|||
import pype.api
|
||||
import pyblish
|
||||
|
||||
StringType = type("")
|
||||
|
||||
|
||||
class ExtractBurnin(pype.api.Extractor):
|
||||
"""
|
||||
|
|
@ -670,14 +668,14 @@ class ExtractBurnin(pype.api.Extractor):
|
|||
if not item:
|
||||
continue
|
||||
|
||||
if not isinstance(item, StringType):
|
||||
try:
|
||||
regexes.append(re.compile(item))
|
||||
except TypeError:
|
||||
self.log.warning((
|
||||
"Invalid type \"{}\" value \"{}\"."
|
||||
" Expected <type 'str'>. Skipping."
|
||||
" Expected string based object. Skipping."
|
||||
).format(str(type(item)), str(item)))
|
||||
continue
|
||||
|
||||
regexes.append(re.compile(item))
|
||||
return regexes
|
||||
|
||||
def validate_value_by_regexes(self, value, in_list):
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@ import clique
|
|||
import pype.api
|
||||
import pype.lib
|
||||
|
||||
StringType = type("")
|
||||
|
||||
|
||||
class ExtractReview(pyblish.api.InstancePlugin):
|
||||
"""Extracting Review mov file for Ftrack
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue