Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def get_flag():
con = None
flag = None
while True:
try:
con = swat.CAS() if con is None else con
flag = con.CASTable() if flag is None else flag
except Exception:
con = flag = None
else:
return flag
def data_requested():
data = get_flag()
## auth.py
class AuthClass:
@property
def flag(self):
return None
def get_flag(self):
return None
Auth = AuthClass(user, password)
## fetch_data.py
from Auth import Auth
data = Auth.get_flag()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment