#NEWLINE# def register_scheme( self , scheme , cls ) : #NEWLINE# #INDENT# '\n        It is possible to inject new schemes at runtime\n        ' #NEWLINE# if ( scheme in self . _schemes ) : #NEWLINE# #INDENT# raise DuplicateScheme ( ) #NEWLINE# #UNINDENT# urlparse . register_scheme ( scheme ) #NEWLINE# self . _schemes [ scheme ] = cls