Remove useless getraw() from ColorDict/FontDict.
This commit is contained in:
parent
2fdf241da2
commit
0d42eaa152
@ -103,20 +103,6 @@ class ColorDict(dict):
|
|||||||
else:
|
else:
|
||||||
return val
|
return val
|
||||||
|
|
||||||
def getraw(self, key):
|
|
||||||
"""Get a value without the transformations done in __getitem__.
|
|
||||||
|
|
||||||
Args:
|
|
||||||
key: The key to get from the dict.
|
|
||||||
|
|
||||||
Return:
|
|
||||||
A value, or None if the value wasn't found.
|
|
||||||
"""
|
|
||||||
try:
|
|
||||||
return super().__getitem__(key)
|
|
||||||
except KeyError:
|
|
||||||
return None
|
|
||||||
|
|
||||||
|
|
||||||
class FontDict(dict):
|
class FontDict(dict):
|
||||||
|
|
||||||
@ -140,17 +126,3 @@ class FontDict(dict):
|
|||||||
return ''
|
return ''
|
||||||
else:
|
else:
|
||||||
return 'font: {};'.format(val)
|
return 'font: {};'.format(val)
|
||||||
|
|
||||||
def getraw(self, key):
|
|
||||||
"""Get a value without the transformations done in __getitem__.
|
|
||||||
|
|
||||||
Args:
|
|
||||||
key: The key to get from the dict.
|
|
||||||
|
|
||||||
Return:
|
|
||||||
A value, or None if the value wasn't found.
|
|
||||||
"""
|
|
||||||
try:
|
|
||||||
return super().__getitem__(key)
|
|
||||||
except KeyError:
|
|
||||||
return None
|
|
||||||
|
Loading…
Reference in New Issue
Block a user