def _validate(self): try: _Dialect(self) except TypeError, e: # We do this for compatibility with py2.3 raise Error(str(e))
def _validate(self): try: _Dialect(self) except TypeError as e: raise Error(str(e))