<s> import six <EOL> from ... util import Util <EOL> import saklient <EOL> str = six . text_type <EOL> class EStorageClass ( object ) : <EOL> ISCSI1204 = "<STR_LIT>" <EOL> iscsi1204 = "<STR_LIT>" <EOL> _MAP = { <EOL> "<STR_LIT>" : <NUM_LIT> <EOL> } <EOL> @ classmethod <EOL> def compare ( clazz , lhs , rhs ) : <EOL> if not ( isinstance ( lhs , ( six . text_type , six . string_types ) ) and isinstance ( rhs , ( six . text_type , six . string_types ) ) ) : return None <EOL> lhs = lhs . upper ( ) <EOL> rhs = rhs . upper ( ) <EOL> if lhs not in clazz . _MAP or rhs not in clazz . _MAP : return None <EOL> d = clazz . _MAP [ lhs ] - clazz . _MAP [ rhs ] <EOL> return ( <NUM_LIT:0> < d ) - ( d < <NUM_LIT:0> ) </s>
