<s> """<STR_LIT>""" <EOL> from dfvfs . lib import definitions <EOL> from dfvfs . path import factory <EOL> from dfvfs . path import path_spec <EOL> class EncryptedStreamPathSpec ( path_spec . PathSpec ) : <EOL> """<STR_LIT>""" <EOL> TYPE_INDICATOR = definitions . TYPE_INDICATOR_ENCRYPTED_STREAM <EOL> def __init__ ( self , encryption_method = None , parent = None , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> if not encryption_method or not parent : <EOL> raise ValueError ( u'<STR_LIT>' ) <EOL> super ( EncryptedStreamPathSpec , self ) . __init__ ( parent = parent , ** kwargs ) <EOL> self . encryption_method = encryption_method <EOL> @ property <EOL> def comparable ( self ) : <EOL> """<STR_LIT>""" <EOL> sub_comparable_string = ( <EOL> u'<STR_LIT>' ) . format ( self . encryption_method ) <EOL> return self . _GetComparable ( sub_comparable_string = sub_comparable_string ) <EOL> factory . Factory . RegisterPathSpec ( EncryptedStreamPathSpec ) </s>
