add UnicodeOption
This commit is contained in:
parent
ccf75aac89
commit
f6a14e3223
|
@ -369,6 +369,12 @@ class StrOption(Option):
|
|||
def _validate(self, value):
|
||||
return isinstance(value, str)
|
||||
|
||||
class UnicodeOption(Option):
|
||||
opt_type = 'unicode'
|
||||
|
||||
def _validate(self, value):
|
||||
return isinstance(value, unicode)
|
||||
|
||||
class SymLinkOption(object):
|
||||
opt_type = 'symlink'
|
||||
|
||||
|
|
Loading…
Reference in New Issue