def printResult(records, domainname):
 (answers, authority, additional) = records
 if answers:
  sys.stdout.write((((domainname + ' IN \n ') + '\n '.join((str(x.payload) for x in answers))) + '\n'))
 else:
  sys.stderr.write(('ERROR: No SRV records found for name %r\n' % (domainname,)))

def printResult ( records , domainname ) : ( answers , authority , additional ) = records if answers : sys . stdout . write ( ( ( ( domainname + ' IN \n ' ) + '\n ' . join ( ( str ( x . payload ) for x in answers ) ) ) + '\n' ) ) else : sys . stderr . write ( ( 'ERROR: No SRV records found for name %r\n' % ( domainname , ) ) )
print a comma separated list of reverse domain names and associated pointer records .