Commit f77d2b1b authored by Chris Lamb's avatar Chris Lamb 👀
Browse files

Fix compatibility with Python 3.7.

parent 1eea9177
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ class JSONFile(File):
            # Try fuzzy matching for JSON files
            is_text = any(
                file.magic_file_type.startswith(x)
                for x in ('ASCII text', 'UTF-8 Unicode text'),
                for x in ('ASCII text', 'UTF-8 Unicode text')
            )
            if is_text and not file.name.endswith('.json'):
                buf = f.read(10)
+1 −1
Original line number Diff line number Diff line
@@ -109,5 +109,5 @@ class PresenterManager(object):
        """

        return any(
            x['klass'].supports_visual_diffs for x in self.config.values(),
            x['klass'].supports_visual_diffs for x in self.config.values()
        )