From abb6882995070c60f8b17a02106dad371808602f Mon Sep 17 00:00:00 2001 From: TBK Date: Mon, 15 May 2017 04:12:30 +0200 Subject: [PATCH] Styling --- musicbot/bot.py | 4 ++-- musicbot/entry.py | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/musicbot/bot.py b/musicbot/bot.py index b5051bbc5..cf47bd899 100644 --- a/musicbot/bot.py +++ b/musicbot/bot.py @@ -988,8 +988,8 @@ async def deserialize_queue(self, *, dir=None) -> Player: """ - Deserialize a saved queue for a server into a Player. - If no queue is saved, returns None. + Deserialize a saved queue for a server into a Player. + If no queue is saved, returns None. """ if playlist is None: diff --git a/musicbot/entry.py b/musicbot/entry.py index 4037bf047..8ed5c41aa 100644 --- a/musicbot/entry.py +++ b/musicbot/entry.py @@ -44,9 +44,9 @@ async def _download(self): def get_ready_future(self): """ - Returns a future that will fire when the song is ready to be played. - The future will either fire with the result (being the entry) - or an exception as to why the song download failed. + Returns a future that will fire when the song is ready to be played. + The future will either fire with the result (being the entry) + or an exception as to why the song download failed. """ future = asyncio.Future() if self.is_downloaded: @@ -268,7 +268,7 @@ async def _download(self): # noinspection PyShadowingBuiltins async def _really_download(self, *, hash=False): - LOG.info("Download started: %s", self.url) + LOG.info('Download started: %s', self.url) try: result = await self.playlist.downloader.extract_info( @@ -276,11 +276,11 @@ async def _really_download(self, *, hash=False): except Exception as error: raise ExtractionError(error) - LOG.info("Download complete: %s", self.url) + LOG.info('Download complete: %s', self.url) if result is None: - LOG.critical("YTDL has failed, everyone panic") - raise ExtractionError("ytdl broke and hell if I know why") + LOG.critical('YTDL has failed, everyone panic') + raise ExtractionError('ytdl broke and hell if I know why') # What the fuck do I do now? self.filename = unhashed_fname = \ @@ -375,7 +375,7 @@ def _deserialize(cls, data, playlist=None): return entry except Exception as error: - LOG.error("Could not load %s", cls.__name__, exc_info=error) + LOG.error('Could not load %s', cls.__name__, exc_info=error) # noinspection PyMethodOverriding async def _download(self, *, fallback=False):