From 7d5432ee1fe75bfc21460b7563f39b1f8bac4cbf Mon Sep 17 00:00:00 2001 From: Prince2347X Date: Thu, 24 Jun 2021 10:39:02 +0530 Subject: [PATCH] Optimizations --- pydoodle/jdoodle.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pydoodle/jdoodle.py b/pydoodle/jdoodle.py index 4ca216d..4807cc3 100644 --- a/pydoodle/jdoodle.py +++ b/pydoodle/jdoodle.py @@ -8,7 +8,7 @@ def __init__(self, response_json: dict): """ The output of the executed script. :param response_json: The response from the API - :type respose_json: dict + :type response_json: dict """ self._output = response_json['output'], self._statusCode = response_json['statusCode'], @@ -78,7 +78,8 @@ def __init__(self, clientId: str, clientSecret: str): 'whitespace', 'yabasic'] self.json = {} - def _get_raw_link(self, link: str) -> str: + @staticmethod + def _get_raw_link(link: str) -> str: if "pastebin" in link or "hastebin" in link: return f"{link[:link.find('.com')]}.com/raw{link[link.rfind('/'):]}" elif "textbin" in link: