def _register_inet(oid=None, conn_or_curs=None):
from psycopg2 import extensions as _ext<EOL>if not oid: oid = <NUM_LIT><EOL>_ext.INET = _ext.new_type((oid, ), "<STR_LIT>",<EOL>lambda data, cursor: data and Inet(data) or None)<EOL>_ext.register_type(_ext.INET, conn_or_curs)<EOL>return _ext.INET<EOL>
Create the INET type and an Inet adapter.