[Zpt] CVS: Packages/TAL - driver.py:1.14

guido@digiciool.com guido@digiciool.com
Wed, 14 Mar 2001 10:52:45 -0500 (EST)


Update of /cvs-repository/Packages/TAL
In directory korak:/tmp/cvs-serv4511

Modified Files:
	driver.py 
Log Message:
Lowercase the extension before testing for.htm[l].



--- Updated File driver.py in package Packages/TAL --
--- driver.py	2001/03/14 15:07:10	1.13
+++ driver.py	2001/03/14 15:52:44	1.14
@@ -89,6 +89,7 @@
 
 import os
 import sys
+import string
 
 import getopt
 
@@ -148,7 +149,7 @@
 def compilefile(file, html=None):
     if html is None:
         ext = os.path.splitext(file)[1]
-        html = ext in (".html", ".htm")
+        html = string.lower(ext) in (".html", ".htm")
     if html:
         from HTMLTALParser import HTMLTALParser
         p = HTMLTALParser()