mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
update Archipelago
This commit is contained in:
11
Utils.py
11
Utils.py
@@ -19,10 +19,8 @@ import os
|
||||
import subprocess
|
||||
import sys
|
||||
import pickle
|
||||
import io
|
||||
import builtins
|
||||
|
||||
import functools
|
||||
import io
|
||||
|
||||
from yaml import load, dump, safe_load
|
||||
|
||||
@@ -380,6 +378,11 @@ safe_builtins = {
|
||||
'frozenset',
|
||||
}
|
||||
|
||||
safe_builtins = {
|
||||
'set',
|
||||
'frozenset',
|
||||
}
|
||||
|
||||
|
||||
class RestrictedUnpickler(pickle.Unpickler):
|
||||
def find_class(self, module, name):
|
||||
@@ -392,4 +395,4 @@ class RestrictedUnpickler(pickle.Unpickler):
|
||||
|
||||
def restricted_loads(s):
|
||||
"""Helper function analogous to pickle.loads()."""
|
||||
return RestrictedUnpickler(io.BytesIO(s)).load()
|
||||
return RestrictedUnpickler(io.BytesIO(s)).load()
|
Reference in New Issue
Block a user