You've already forked snikket-web-portal
Get rid of debug prints
This commit is contained in:
@@ -83,9 +83,6 @@ class HTTPAuthSessionManager(HTTPSessionManager):
|
|||||||
def autosession(f):
|
def autosession(f):
|
||||||
@functools.wraps(f)
|
@functools.wraps(f)
|
||||||
async def wrapper(self, *args, session=None, **kwargs):
|
async def wrapper(self, *args, session=None, **kwargs):
|
||||||
print(f)
|
|
||||||
print(f.__code__.co_argcount, f.__code__.co_varnames)
|
|
||||||
print(args, kwargs)
|
|
||||||
if session is None:
|
if session is None:
|
||||||
async with self._auth_session as session:
|
async with self._auth_session as session:
|
||||||
return (await f(self, *args, session=session, **kwargs))
|
return (await f(self, *args, session=session, **kwargs))
|
||||||
@@ -225,14 +222,12 @@ class ProsodyClient:
|
|||||||
"Content-Type": "application/xmpp+xml",
|
"Content-Type": "application/xmpp+xml",
|
||||||
"Accept": "application/xmpp+xml",
|
"Accept": "application/xmpp+xml",
|
||||||
})
|
})
|
||||||
print(payload)
|
|
||||||
async with session.post(self._rest_endpoint,
|
async with session.post(self._rest_endpoint,
|
||||||
headers=headers,
|
headers=headers,
|
||||||
data=payload) as resp:
|
data=payload) as resp:
|
||||||
if resp.status != 200:
|
if resp.status != 200:
|
||||||
abort(resp.status)
|
abort(resp.status)
|
||||||
reply_payload = await resp.read()
|
reply_payload = await resp.read()
|
||||||
print(reply_payload)
|
|
||||||
return ET.fromstring(reply_payload)
|
return ET.fromstring(reply_payload)
|
||||||
|
|
||||||
async def get_user_info(self):
|
async def get_user_info(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user