h.close()
return data
+def mixed_newlines(filename):
+ """Returns ``True`` if ``filename`` has mixed newlines."""
+ f = open(filename, "U") # requires universal newline support
+ f.read()
+ ret = isinstance(f.newlines, tuple)
+ f.close() # just to be safe
+ return ret
+
class NoOperatorInfo(wizard.Error):
"""No information could be found about the operator from Kerberos."""
pass