[PATCH 09 of 24 yams V2] [misc] remove super old backward compatibility code

Laurent Peuch cortex at worlddomination.be
Wed Mar 4 15:17:45 CET 2020


# HG changeset patch
# User Laurent Peuch <cortex at worlddomination.be>
# Date 1579704931 -3600
#      Wed Jan 22 15:55:31 2020 +0100
# Node ID 90c54f368a2100b6047cf668816357ba67a4d90d
# Parent  bf3ca63b9f5c2f8e217ed4e65c119cc69a2402b4
# Available At https://hg.logilab.org/users/lpeuch/yams
#              hg pull https://hg.logilab.org/users/lpeuch/yams -r 90c54f368a21
# EXP-Topic type_annotations
[misc] remove super old backward compatibility code

diff --git a/yams/reader.py b/yams/reader.py
--- a/yams/reader.py
+++ b/yams/reader.py
@@ -272,11 +272,6 @@ class SchemaLoader(object):
         return (modname, module)
 
 
-# XXX backward compatibility to prevent changing cw.schema and cw.test.unittest_schema (3.12.+)
-PyFileReader = SchemaLoader
-PyFileReader.__init__ = lambda *x: None
-
-
 def fill_schema_from_namespace(schema, items, **kwargs):
     erdefs = {}
     for _, obj in items:



More information about the cubicweb-devel mailing list