From 30cbd9f01845e22b8ecc632fbb4ca34ceb440dab Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Tue, 16 Apr 2024 16:19:09 +0200 Subject: [PATCH] fix: remove py2 utf8 encoding --- extruct/jsonld.py | 1 - extruct/rdfa.py | 1 - extruct/utils.py | 1 - extruct/xmldom.py | 1 - setup.py | 1 - tests/__init__.py | 1 - tests/test_dublincore.py | 1 - tests/test_extruct.py | 1 - tests/test_extruct_uniform.py | 1 - tests/test_jsonld.py | 1 - tests/test_microdata.py | 1 - tests/test_microformat.py | 1 - tests/test_opengraph.py | 1 - tests/test_rdfa.py | 1 - 14 files changed, 14 deletions(-) diff --git a/extruct/jsonld.py b/extruct/jsonld.py index 495ad07b..63336edd 100644 --- a/extruct/jsonld.py +++ b/extruct/jsonld.py @@ -1,5 +1,4 @@ # mypy: disallow_untyped_defs=False -# -*- coding: utf-8 -*- """ JSON-LD extractor """ diff --git a/extruct/rdfa.py b/extruct/rdfa.py index c313e2b6..d84bd595 100644 --- a/extruct/rdfa.py +++ b/extruct/rdfa.py @@ -1,5 +1,4 @@ # mypy: disallow_untyped_defs=False -# -*- coding: utf-8 -*- """ RDFa extractor diff --git a/extruct/utils.py b/extruct/utils.py index b16f0f0e..6dc9810f 100644 --- a/extruct/utils.py +++ b/extruct/utils.py @@ -1,5 +1,4 @@ # mypy: disallow_untyped_defs=False -# -*- coding: utf-8 -*- import lxml.html from extruct.xmldom import XmlDomHTMLParser diff --git a/extruct/xmldom.py b/extruct/xmldom.py index 018919c8..7096d3d8 100644 --- a/extruct/xmldom.py +++ b/extruct/xmldom.py @@ -1,7 +1,6 @@ # mypy: disallow_untyped_defs=False from __future__ import annotations -# -*- coding: utf-8 -*- from copy import copy, deepcopy from xml.dom import Node from xml.dom.minidom import Attr, NamedNodeMap diff --git a/setup.py b/setup.py index 23cb0cf4..9fa37516 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,4 @@ # mypy: disallow_untyped_defs=False -# -*- coding: utf-8 -*- import os from setuptools import find_packages, setup diff --git a/tests/__init__.py b/tests/__init__.py index 0311ec9b..207b80ba 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,5 +1,4 @@ # mypy: disallow_untyped_defs=False -# -*- coding: utf-8 -*- import json import os diff --git a/tests/test_dublincore.py b/tests/test_dublincore.py index 52746e6d..696aa244 100644 --- a/tests/test_dublincore.py +++ b/tests/test_dublincore.py @@ -1,5 +1,4 @@ # mypy: disallow_untyped_defs=False -# -*- coding: utf-8 -*- import json import unittest diff --git a/tests/test_extruct.py b/tests/test_extruct.py index 5fa3dcd3..f7ef6fc3 100644 --- a/tests/test_extruct.py +++ b/tests/test_extruct.py @@ -1,5 +1,4 @@ # mypy: disallow_untyped_defs=False -# -*- coding: utf-8 -*- import json import unittest diff --git a/tests/test_extruct_uniform.py b/tests/test_extruct_uniform.py index b47343e8..38cf5eca 100644 --- a/tests/test_extruct_uniform.py +++ b/tests/test_extruct_uniform.py @@ -1,5 +1,4 @@ # mypy: disallow_untyped_defs=False -# -*- coding: utf-8 -*- import json import unittest diff --git a/tests/test_jsonld.py b/tests/test_jsonld.py index b2d126cd..d274b3d1 100644 --- a/tests/test_jsonld.py +++ b/tests/test_jsonld.py @@ -1,5 +1,4 @@ # mypy: disallow_untyped_defs=False -# -*- coding: utf-8 -*- import json import unittest diff --git a/tests/test_microdata.py b/tests/test_microdata.py index d3741e2c..c1168a02 100644 --- a/tests/test_microdata.py +++ b/tests/test_microdata.py @@ -1,5 +1,4 @@ # mypy: disallow_untyped_defs=False -# -*- coding: utf-8 -*- import json import unittest diff --git a/tests/test_microformat.py b/tests/test_microformat.py index 8543d87c..b2908c15 100644 --- a/tests/test_microformat.py +++ b/tests/test_microformat.py @@ -1,5 +1,4 @@ # mypy: disallow_untyped_defs=False -# -*- coding: utf-8 -*- import json import unittest diff --git a/tests/test_opengraph.py b/tests/test_opengraph.py index cfc18b5c..4bdcc010 100644 --- a/tests/test_opengraph.py +++ b/tests/test_opengraph.py @@ -1,5 +1,4 @@ # mypy: disallow_untyped_defs=False -# -*- coding: utf-8 -*- import json import unittest diff --git a/tests/test_rdfa.py b/tests/test_rdfa.py index 6c081838..b3d81a7e 100644 --- a/tests/test_rdfa.py +++ b/tests/test_rdfa.py @@ -1,5 +1,4 @@ # mypy: disallow_untyped_defs=False -# -*- coding: utf-8 -*- import json import unittest from pprint import pformat