Simplify some code, reflecting 1.4 conventions.

This commit is contained in:
Eric S. Raymond 2008-09-04 08:04:51 +00:00
parent 8ac759098c
commit 319492634b

View file

@ -700,10 +700,7 @@ def hack_syntax(filename, lines):
def is_map(filename):
"Is this file a map?"
if isresource(filename) or '{' in filename or '}' in filename:
return False
if filename.endswith(".map"):
return True
return filename.endswith(".map")
if 0: # Not used, as there are currently no defined map transforms
class maptransform_error: