[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 1 of 7] tools/check: remove check_logging


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Olaf Hering <olaf@xxxxxxxxx>
  • Date: Tue, 04 Oct 2011 16:21:50 +0200
  • Delivery-date: Tue, 04 Oct 2011 07:22:38 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1317738016 -7200
# Node ID c2daf20cf860d942d1105ce2f5fa7e171c536466
# Parent  0b66e6450ffe6823d8b323ef4248b38fe7372d54
tools/check: remove check_logging

Remove tools/check/check_logging.
Python 2.3 is the minimal required python version so the checked
function is available anyway.
It is the only python script, its in the way for an subsequent
change which will call all check_* scripts with shell.

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

diff -r 0b66e6450ffe -r c2daf20cf860 tools/check/check_logging
--- a/tools/check/check_logging
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/env python
-#  -*- mode: python; -*-
-
-import os
-import sys
-
-def hline():
-    print >>sys.stderr, "*" * 70
-
-def msg(message):
-    print >>sys.stderr, "*" * 3, message
-
-def check_logging():
-    """Check python logging is installed and raise an error if not.
-    Logging is standard from Python 2.3 on.
-    """
-    try:
-        import logging
-    except ImportError:
-        hline()
-        msg("")
-        msg("  *** Python logging is not installed.")
-        msg("  *** Use 'make install-logging' at the xen root to install.")
-        msg("  *** ")
-        msg("  *** Alternatively download and install from")
-        msg("  *** http://www.red-dove.com/python_logging.html";)
-        hline()
-        sys.exit(1)
-
-if __name__ == '__main__':
-    check_logging()

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.