add UnicodeOption

This commit is contained in:
Garette Emmanuel 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): def _validate(self, value):
return isinstance(value, str) return isinstance(value, str)
class UnicodeOption(Option):
opt_type = 'unicode'
def _validate(self, value):
return isinstance(value, unicode)
class SymLinkOption(object): class SymLinkOption(object):
opt_type = 'symlink' opt_type = 'symlink'