<s> """<STR_LIT>""" <EOL> import binascii <EOL> class ChecksumMismatch ( Exception ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , expected , got , extra = None ) : <EOL> if len ( expected ) == <NUM_LIT:20> : <EOL> expected = binascii . hexlify ( expected ) <EOL> if len ( got ) == <NUM_LIT:20> : <EOL> got = binascii . hexlify ( got ) <EOL> self . expected = expected <EOL> self . got = got <EOL> self . extra = extra <EOL> if self . extra is None : <EOL> Exception . __init__ ( self , <EOL> "<STR_LIT>" % ( expected , got ) ) <EOL> else : <EOL> Exception . __init__ ( self , <EOL> "<STR_LIT>" % <EOL> ( expected , got , extra ) ) <EOL> class WrongObjectException ( Exception ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , sha , * args , ** kwargs ) : <EOL> Exception . __init__ ( self , "<STR_LIT>" % ( sha , self . type_name ) ) <EOL> class NotCommitError ( WrongObjectException ) : <EOL> """<STR_LIT>""" <EOL> type_name = '<STR_LIT>' <EOL> class NotTreeError ( WrongObjectException ) : <EOL> """<STR_LIT>""" <EOL> type_name = '<STR_LIT>' <EOL> class NotTagError ( WrongObjectException ) : <EOL> """<STR_LIT>""" <EOL> type_name = '<STR_LIT>' <EOL> class NotBlobError ( WrongObjectException ) : <EOL> """<STR_LIT>""" <EOL> type_name = '<STR_LIT>' <EOL> class MissingCommitError ( Exception ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , sha , * args , ** kwargs ) : <EOL> Exception . __init__ ( self , "<STR_LIT>" % sha ) <EOL> class ObjectMissing ( Exception ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , sha , * args , ** kwargs ) : <EOL> Exception . __init__ ( self , "<STR_LIT>" % sha ) <EOL> class ApplyDeltaError ( Exception ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> Exception . __init__ ( self , * args , ** kwargs ) <EOL> class NotGitRepository ( Exception ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> Exception . __init__ ( self , * args , ** kwargs ) <EOL> class GitProtocolError ( Exception ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> Exception . __init__ ( self , * args , ** kwargs ) <EOL> class SendPackError ( GitProtocolError ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> Exception . __init__ ( self , * args , ** kwargs ) <EOL> class UpdateRefsError ( GitProtocolError ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> self . ref_status = kwargs . pop ( '<STR_LIT>' ) <EOL> Exception . __init__ ( self , * args , ** kwargs ) <EOL> class HangupException ( GitProtocolError ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self ) : <EOL> Exception . __init__ ( self , <EOL> "<STR_LIT>" ) <EOL> class UnexpectedCommandError ( GitProtocolError ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , command ) : <EOL> if command is None : <EOL> command = '<STR_LIT>' <EOL> else : <EOL> command = '<STR_LIT>' % command <EOL> GitProtocolError . __init__ ( self , '<STR_LIT>' % command ) <EOL> class FileFormatException ( Exception ) : <EOL> """<STR_LIT>""" <EOL> class PackedRefsException ( FileFormatException ) : <EOL> """<STR_LIT>""" <EOL> class ObjectFormatException ( FileFormatException ) : <EOL> """<STR_LIT>""" <EOL> class NoIndexPresent ( Exception ) : <EOL> """<STR_LIT>""" <EOL> class CommitError ( Exception ) : <EOL> """<STR_LIT>""" <EOL> class RefFormatError ( Exception ) : <EOL> """<STR_LIT>""" </s>
