Skip to content

Commit

Permalink
Optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
Prince2347X committed Jun 24, 2021
1 parent e4d400f commit 7d5432e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pydoodle/jdoodle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 7d5432e

Please sign in to comment.