Skip to content

Commit

Permalink
Merge pull request danpaquin#65 from bryankaplan/explicit_super
Browse files Browse the repository at this point in the history
Use explicit classes when calling super()
  • Loading branch information
danpaquin authored Jun 19, 2017
2 parents e1d0a44 + f058878 commit f935734
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gdax/authenticated_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class AuthenticatedClient(PublicClient):
def __init__(self, key, b64secret, passphrase, api_url="https://api.gdax.com", product_id="BTC-USD"):
super(self.__class__, self).__init__(api_url, product_id)
super(AuthenticatedClient, self).__init__(api_url, product_id)
self.auth = GdaxAuth(key, b64secret, passphrase)

def get_account(self, account_id):
Expand Down
2 changes: 1 addition & 1 deletion gdax/order_book.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class OrderBook(WebsocketClient):
def __init__(self, product_id='BTC-USD'):
super(self.__class__, self).__init__(products=product_id)
super(OrderBook, self).__init__(products=product_id)
self._asks = RBTree()
self._bids = RBTree()
self._client = PublicClient(product_id=product_id)
Expand Down

0 comments on commit f935734

Please sign in to comment.