Skip to content

Instantly share code, notes, and snippets.

@dreirund
Created October 16, 2022 17:05
Show Gist options
  • Save dreirund/f36737536cb434e5ac450a5f0dc8f034 to your computer and use it in GitHub Desktop.
Save dreirund/f36737536cb434e5ac450a5f0dc8f034 to your computer and use it in GitHub Desktop.
python-validictory fix for current python3: Change `collections` to `collections.abc` as import source for `Mapping` and `Container'.
diff -r -U0 validictory-1.1.2.orig/validictory/validator.py validictory-1.1.2.new/validictory/validator.py
--- validictory-1.1.2.orig/validictory/validator.py 2017-12-01 19:55:23.000000000 +0100
+++ validictory-1.1.2.new/validictory/validator.py 2022-10-16 18:58:59.969958053 +0200
@@ -7 +7 @@
-from collections import Mapping, Container
+from collections.abc import Mapping, Container
@dreirund
Copy link
Author

dreirund commented Oct 16, 2022

Fixes an issue in python-validictory for current python versions, see here for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment