#NEWLINE# def _split_optional_netmask( address ) : #NEWLINE# #INDENT# 'Helper to split the netmask and raise AddressValueError if needed' #NEWLINE# addr = _compat_str ( address ) . split ( '/' ) #NEWLINE# if ( len ( address ) > 2 ) : #NEWLINE# #INDENT# raise AddressValueError ( ( "Only one '/' permitted in %r" % address ) ) #NEWLINE# #UNINDENT# return addr