From af3f341c277d1e794de1229623ad6ad876f2f5f6 Mon Sep 17 00:00:00 2001 From: 0x5c <0x5c.dev@gmail.com> Date: Sun, 27 Oct 2019 10:49:19 -0400 Subject: [PATCH] QRZCog: quick mini linting (#60) --- cogs/qrzcog.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/qrzcog.py b/cogs/qrzcog.py index 785bfa0..43ae3d7 100644 --- a/cogs/qrzcog.py +++ b/cogs/qrzcog.py @@ -61,7 +61,7 @@ class QRZCog(commands.Cog): raise ValueError(resp_session['Error']) resp_xml_data = resp_xml.xpath('/x:QRZDatabase/x:Callsign', - namespaces={'x':'http://xmldata.qrz.com'}) + namespaces={'x': 'http://xmldata.qrz.com'}) resp_data = {el.tag.split('}')[1]: el.text for el in resp_xml_data[0].getiterator()} embed = discord.Embed(title=f"QRZ Data for {resp_data['call']}", @@ -105,7 +105,7 @@ async def qrz_login(user: str, passwd: str, session: aiohttp.ClientSession): resp_xml = etree.parse(BytesIO(await resp.read())).getroot() resp_xml_session = resp_xml.xpath('/x:QRZDatabase/x:Session', - namespaces={'x':'http://xmldata.qrz.com'}) + namespaces={'x': 'http://xmldata.qrz.com'}) resp_session = {el.tag.split('}')[1]: el.text for el in resp_xml_session[0].getiterator()} if 'Error' in resp_session: raise ConnectionError(resp_session['Error']) @@ -122,7 +122,7 @@ async def qrz_test_session(key: str, session: aiohttp.ClientSession): resp_xml = etree.parse(BytesIO(await resp.read())).getroot() resp_xml_session = resp_xml.xpath('/x:QRZDatabase/x:Session', - namespaces={'x':'http://xmldata.qrz.com'}) + namespaces={'x': 'http://xmldata.qrz.com'}) resp_session = {el.tag.split('}')[1]: el.text for el in resp_xml_session[0].getiterator()} if 'Error' in resp_session: raise ConnectionError(resp_session['Error'])