add UnicodeOption

This commit is contained in:
Emmanuel Garette 2013-03-20 12:37:27 +01:00
parent ccf75aac89
commit f6a14e3223

View File

@ -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'