Commit 90f040e0 authored by Guido van Rossum's avatar Guido van Rossum

Lowercase the extension before testing for.htm[l].

parent 75bf0d61
......@@ -89,6 +89,7 @@ Driver program to test METAL and TAL implementation.
import os
import sys
import string
import getopt
......@@ -148,7 +149,7 @@ def interpretit(it, engine=None, stream=None, tal=1):
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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment