convert OPT from a dict to a class
This commit is contained in:
@@ -5,6 +5,15 @@ import io
|
||||
import base64
|
||||
from PIL import Image, ImageOps
|
||||
|
||||
class PA:
|
||||
def __repr__(self):
|
||||
str=f"<{self.__class__.__name__}("
|
||||
for k, v in self.__dict__.items():
|
||||
str += f"{k}={v!r}, "
|
||||
str=str.rstrip(", ") + ")>"
|
||||
return str
|
||||
|
||||
|
||||
hostname = socket.gethostname()
|
||||
PROD_HOST="pa_web"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user