@@ -70,34 +70,8 @@ def deleteItem(self, item):
70
70
71
71
BoxInfo = BoxInformation ()
72
72
73
-
74
- class SystemInformation (dict ):
75
- def __getitem__ (self , item ):
76
- return BoxInfo .boxInfo [item ]
77
-
78
- def __setitem__ (self , item , value ):
79
- BoxInfo .setItem (item , value , immutable = False )
80
-
81
- def __delitem__ (self , item ):
82
- BoxInfo .deleteItem (item )
83
-
84
- def get (self , item , default = None ):
85
- return BoxInfo .boxInfo .get (item , default )
86
-
87
- def __prohibited (self , * args , ** kws ):
88
- print ("[SystemInfo] operation not permitted" )
89
-
90
- def __contains__ (self , item ):
91
- return item in BoxInfo .boxInfo
92
-
93
- clear = __prohibited
94
- update = __prohibited
95
- setdefault = __prohibited
96
- pop = __prohibited
97
- popitem = __prohibited
98
-
99
-
100
- SystemInfo = SystemInformation ()
73
+ #This line makes the BoxInfo backwards compatible with SystemInfo without duplicating the dictionary.
74
+ SystemInfo = BoxInfo .boxInfo
101
75
102
76
103
77
ARCHITECTURE = BoxInfo .getItem ("architecture" )
0 commit comments