1204
1221
if path.endswith(suffix):
1205
1222
return path[:-len(suffix)]
1207
1225
def is_control_file(filename):
1209
1228
filename = normpath(filename)
1211
1230
head, tail = os.path.split(filename)
1212
1231
## mutter('check %r for control file' % ((head, tail),))