Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
  • 3 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
Commits on Mar 15, 2012
@alswl alswl add .gitignore dd461dc
@alswl alswl remove lock from set_session() abe695a
@jc Merge pull request #8 from alswl/master
Removing deadlock situation from set_session()
452a7e5
Showing with 30 additions and 4 deletions.
  1. +27 −0 .gitignore
  2. +3 −4 lastfm/api.py
View
27 .gitignore
@@ -0,0 +1,27 @@
+*.py[co]
+
+# Packages
+*.egg
+*.egg-info
+dist
+build
+eggs
+parts
+bin
+var
+sdist
+develop-eggs
+.installed.cfg
+
+# Installer logs
+pip-log.txt
+
+# Unit test / coverage reports
+.coverage
+.tox
+
+#Translations
+*.mo
+
+#Mr Developer
+.mr.developer.cfg
View
7 lastfm/api.py
@@ -136,10 +136,9 @@ def set_session_key(self, session_key = None):
if session_key is not None:
self._session_key = session_key
else:
- with _lock:
- params = {'method': 'auth.getSession', 'token': self.auth_token}
- self._session_key = self._fetch_data(params, sign = True).findtext('session/key')
- self._auth_token = None
+ params = {'method': 'auth.getSession', 'token': self.auth_token}
+ self._session_key = self._fetch_data(params, sign = True).findtext('session/key')
+ self._auth_token = None
@cached_property
def auth_token(self):

No commit comments for this range

Something went wrong with that request. Please try again.