[BACK]Return to ydump.py CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / external / mpl / bind / dist / bin / tests / system / dnstap

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/external/mpl/bind/dist/bin/tests/system/dnstap/ydump.py between version 1.1.1.1.4.1 and 1.1.1.1.4.2

version 1.1.1.1.4.1, 2018/08/12 12:07:31 version 1.1.1.1.4.2, 2019/06/10 22:03:26
Line 0 
Line 1 
   ############################################################################
   # Copyright (C) Internet Systems Consortium, Inc. ("ISC")
   #
   # This Source Code Form is subject to the terms of the Mozilla Public
   # License, v. 2.0. If a copy of the MPL was not distributed with this
   # file, You can obtain one at http://mozilla.org/MPL/2.0/.
   #
   # See the COPYRIGHT file distributed with this work for additional
   # information regarding copyright ownership.
   ############################################################################
   
   try:
       import yaml
   except:
       print("No python yaml module, skipping")
       exit(1)
   
   import subprocess
   import pprint
   import sys
   
   DNSTAP_READ=sys.argv[1]
   DATAFILE=sys.argv[2]
   
   f = subprocess.Popen([DNSTAP_READ, '-y', DATAFILE], stdout=subprocess.PIPE)
   pprint.pprint([l for l in yaml.load_all(f.stdout)])

Legend:
Removed from v.1.1.1.1.4.1  
changed lines
  Added in v.1.1.1.1.4.2

CVSweb <webmaster@jp.NetBSD.org>