6 if (l == 2) and (sys.argv[1] != '-r'):
9 elif (l == 3) and (sys.argv[1] == '-r'):
13 print >>sys.stderr, 'Usage: %s [-r] name.domain' % sys.argv[0]
16 from m_lib.defenc import default_encoding
19 print address.decode("idna").encode(default_encoding)
21 print unicode(address, default_encoding).encode("idna")