aboutsummaryrefslogtreecommitdiff
path: root/deb_patches/python3-remove-pep487.patch
diff options
context:
space:
mode:
Diffstat (limited to 'deb_patches/python3-remove-pep487.patch')
-rw-r--r--deb_patches/python3-remove-pep487.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/deb_patches/python3-remove-pep487.patch b/deb_patches/python3-remove-pep487.patch
new file mode 100644
index 0000000..996681d
--- /dev/null
+++ b/deb_patches/python3-remove-pep487.patch
@@ -0,0 +1,23 @@
+Description: revert a change that requires Python 3.6 (https://docs.python.org/3/whatsnew/3.6.html#whatsnew36-pep487)
+Author: Olivier Tilloy <olivier.tilloy@canonical.com>
+
+--- a/third_party/python/glean_parser/glean_parser/metrics.py
++++ b/third_party/python/glean_parser/glean_parser/metrics.py
+@@ -15,6 +15,8 @@ from typing import Any, Dict, List, Opti
+ from . import pings
+ from . import util
+
++import pep487
++
+
+ # Important: if the values are ever changing here, make sure
+ # to also fix mozilla/glean. Otherwise language bindings may
+@@ -32,7 +34,7 @@ class DataSensitivity(enum.Enum):
+ highly_sensitive = 4
+
+
+-class Metric:
++class Metric(pep487.PEP487Object):
+ typename = "ERROR"
+ glean_internal_metric_cat = "glean.internal.metrics"
+ metric_types = {}
bgstack15