[entity] drop pre-3.7 api on session
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Wed, 27 Mar 2013 14:50:10 +0100
changeset 8793 3305b4a9df49
parent 8792 4b6d3d0a853e
child 8794 2e0c9331e021
[entity] drop pre-3.7 api on session Dropping of API deprecated since 3.7 decided in #2772958
entity.py
--- a/entity.py	Wed Mar 27 14:49:12 2013 +0100
+++ b/entity.py	Wed Mar 27 14:50:10 2013 +0100
@@ -1395,10 +1395,6 @@
 
     @deprecated('[3.10] use entity.cw_attr_cache[attr]')
     def __getitem__(self, key):
-        if key == 'eid':
-            warn('[3.7] entity["eid"] is deprecated, use entity.eid instead',
-                 DeprecationWarning, stacklevel=2)
-            return self.eid
         return self.cw_attr_cache[key]
 
     @deprecated('[3.10] use entity.cw_attr_cache.get(attr[, default])')
@@ -1422,15 +1418,10 @@
         the attribute to skip_security since we don't want to check security
         for such attributes set by hooks.
         """
-        if attr == 'eid':
-            warn('[3.7] entity["eid"] = value is deprecated, use entity.eid = value instead',
-                 DeprecationWarning, stacklevel=2)
-            self.eid = value
-        else:
-            try:
-                self.cw_edited[attr] = value
-            except AttributeError:
-                self.cw_attr_cache[attr] = value
+        try:
+            self.cw_edited[attr] = value
+        except AttributeError:
+            self.cw_attr_cache[attr] = value
 
     @deprecated('[3.10] use del entity.cw_edited[attr]')
     def __delitem__(self, attr):