[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fwd: [PATCH] Make lilysong work on Python >= 2.5
From: |
Han-Wen Nienhuys |
Subject: |
Fwd: [PATCH] Make lilysong work on Python >= 2.5 |
Date: |
Fri, 2 Oct 2009 12:37:18 -0300 |
---------- Forwarded message ----------
From: Milan Zamazal <address@hidden>
Date: Fri, Oct 2, 2009 at 9:45 AM
Subject: [PATCH] Make lilysong work on Python >= 2.5
To: Han-Wen Nienhuys <address@hidden>
---
scripts/lilysong.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/scripts/lilysong.py b/scripts/lilysong.py
index f02aca7..84c2ce4 100644
--- a/scripts/lilysong.py
+++ b/scripts/lilysong.py
@@ -25,6 +25,7 @@ import codecs
import optparse
import os
import popen2
+import stat
import sys
import tempfile
@@ -174,7 +175,7 @@ def process_ly_file (file_name, voice):
xml_file = None
for f in os.listdir (os.path.dirname (file_name) or '.'):
if (f[-4:] == '.xml' and
- (not xml_file or os.stat.st_mtime (f) > os.stat.st_mtime
(xml_file))):
+ (not xml_file or os.stat(f)[stat.ST_MTIME] >
os.stat(xml_file)[stat.ST_MTIME])):
xml_file = f
if xml_file:
process_xml_file (xml_file, voice, None, None)
--
1.5.6.5
--
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Fwd: [PATCH] Make lilysong work on Python >= 2.5,
Han-Wen Nienhuys <=