mirror of
https://github.com/antonioCoco/SharPyShell
synced 2026-06-08 13:11:44 +00:00
39e931ff27
Fixing the string/bytes conversion needed to work with python3 All modules tested (except lateral) and responding as they did with 2.7 on an IIS10 box
8 lines
227 B
Python
8 lines
227 B
Python
class Singleton(object):
|
|
_instances = {}
|
|
|
|
def __new__(cls, *args, **kwargs):
|
|
if cls not in cls._instances:
|
|
cls._instances[cls] = super(Singleton, cls).__new__(cls)
|
|
return cls._instances[cls]
|