Skip to content

Commit

Permalink
refactor: request_url() to _request_url()
Browse files Browse the repository at this point in the history
Have all the methods external to the class have matching naming
convention
  • Loading branch information
eyeonus committed Apr 26, 2024
1 parent 298f767 commit 2592a2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tradedangerous/plugins/eddblink_plug.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
CONTEXT=ssl.create_default_context(cafile=certifi.where())


def request_url(url, headers=None):
def _request_url(url, headers=None):
data = None
if headers:
data = bytes(json.dumps(headers), encoding="utf-8")
Expand Down Expand Up @@ -196,7 +196,7 @@ def downloadFile(self, path):
"""

def openURL(url):
return request_url(url, headers = {'User-Agent': 'Trade-Dangerous'})
return _request_url(url, headers = {'User-Agent': 'Trade-Dangerous'})

if path not in (self.liveListingsPath, self.listingsPath):
localPath = Path(self.tdb.dataPath, path)
Expand Down

0 comments on commit 2592a2f

Please sign in to comment.