<s> """<STR_LIT>""" <EOL> from dfvfs . lib import definitions <EOL> from dfvfs . path import factory <EOL> from dfvfs . path import path_spec <EOL> class LVMPathSpec ( path_spec . PathSpec ) : <EOL> """<STR_LIT>""" <EOL> TYPE_INDICATOR = definitions . TYPE_INDICATOR_LVM <EOL> def __init__ ( self , location = None , parent = None , volume_index = None , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> if not parent : <EOL> raise ValueError ( u'<STR_LIT>' ) <EOL> super ( LVMPathSpec , self ) . __init__ ( parent = parent , ** kwargs ) <EOL> self . location = location <EOL> self . volume_index = volume_index <EOL> @ property <EOL> def comparable ( self ) : <EOL> """<STR_LIT>""" <EOL> string_parts = [ ] <EOL> if self . location is not None : <EOL> string_parts . append ( u'<STR_LIT>' . format ( self . location ) ) <EOL> if self . volume_index is not None : <EOL> string_parts . append ( u'<STR_LIT>' . format ( self . volume_index ) ) <EOL> return self . _GetComparable ( sub_comparable_string = u'<STR_LIT:U+002CU+0020>' . join ( string_parts ) ) <EOL> factory . Factory . RegisterPathSpec ( LVMPathSpec ) </s>
