Intern status and overwrite strings

This commit is contained in:
Rapptz committed 2020-09-23 03:21:20 -04:00
1 parent 23ae084b8c
commit f2de794bde
2 files changed
+7 -5

No files matched your search

+2 -1
View File
@@ -25,6 +25,7 @@ DEALINGS IN THE SOFTWARE.
"""
import abc
import sys
import copy
import asyncio
@@ -169,7 +170,7 @@ class _Overwrites:
self.id = kwargs.pop('id')
self.allow = kwargs.pop('allow', 0)
self.deny = kwargs.pop('deny', 0)
self.type = kwargs.pop('type')
self.type = sys.intern(kwargs.pop('type'))
def _asdict(self):
return {