From 587102d27e01c8c65eb2469123e1a59923ddac23 Mon Sep 17 00:00:00 2001 From: winterstream Date: Mon, 7 Jul 2008 10:32:40 +0000 Subject: [PATCH] modinfo in the translate toolkit is now a 2-tuple containing the mtime and the size of a file. The pootle modtime function used the toolkit's get_mod_info directly, but this didn't play nice with existing code that's only interested in looking at the mtime of a file. So this has been modified to only give the mtime for Poolte. git-svn-id: http://translate.svn.sourceforge.net/svnroot/translate/src/trunk/Pootle@7719 54714841-351b-0410-a198-e36a94b762f5 --- statistics.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/statistics.py b/statistics.py index 1831dd9..920767e 100644 --- a/statistics.py +++ b/statistics.py @@ -6,7 +6,8 @@ from translate.misc.multistring import multistring STATS_DB_FILE = None def getmodtime(filename): - return statsdb.get_mod_info(filename, errors_return_empty=True, empty_return=None) + mtime, size = statsdb.get_mod_info(filename, errors_return_empty=True, empty_return=None) + return mtime class pootlestatistics: """this represents the statistics known about a file""" -- 2.11.4.GIT