summaryrefslogtreecommitdiff
path: root/python/qpid/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/qpid/util.py')
-rw-r--r--python/qpid/util.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/qpid/util.py b/python/qpid/util.py
index c88cc0c9d6..e41dfc75fb 100644
--- a/python/qpid/util.py
+++ b/python/qpid/util.py
@@ -17,7 +17,7 @@
# under the License.
#
-import socket
+import os, socket
def connect(host, port):
sock = socket.socket()
@@ -37,3 +37,6 @@ def listen(host, port, predicate = lambda: True, bound = lambda: None):
while predicate():
s, a = sock.accept()
yield s
+
+def mtime(filename):
+ return os.stat(filename).st_mtime