|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] tools/check: remove check_logging
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1317994395 -3600
# Node ID eec5d0b44f76ebe748a6279f5c847d719bdc72e6
# Parent b45b400d11d3f845adb94af3b59e33ee1770b317
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.
Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
diff -r b45b400d11d3 -r eec5d0b44f76 tools/check/check_logging
--- a/tools/check/check_logging Fri Oct 07 14:32:36 2011 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] tools/check: remove check_logging,
Xen patchbot-unstable <=
|
|
|
|
|