add UnicodeOption
This commit is contained in:
parent
ccf75aac89
commit
f6a14e3223
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue