Add some more aliases.

This commit is contained in:
Chris McDonough
2010-03-12 02:26:19 +00:00
parent 86f39e7ce0
commit f333a26610

View File

@@ -277,6 +277,8 @@ class Sequence(Positional):
return result
Seq = Sequence
class String(object):
""" A type representing a Unicode string """
def __init__(self, encoding='utf-8'):
@@ -297,6 +299,8 @@ class String(object):
def deserialize(self, struct, value):
return self._validate(struct, value)
Str = String
class Integer(object):
""" A type representing an integer """
def _validate(self, struct, value):
@@ -361,6 +365,8 @@ class Structure(object):
def add(self, struct):
self.structs.append(struct)
Struct = Structure
class _SchemaMeta(type):
def __init__(cls, name, bases, clsattrs):
structs = []