From: Johannes Holmberg Date: Thu, 16 Feb 2012 14:38:27 +0000 (+0100) Subject: Use list.index instead of tuple.index to regain compatibility with Python 2.5 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4f3cebd69881eee51c6cef7571b0fbceb923f979;p=django-social-auth.git Use list.index instead of tuple.index to regain compatibility with Python 2.5 --- diff --git a/social_auth/backends/pipeline/misc.py b/social_auth/backends/pipeline/misc.py index 22b0e19..3b9615e 100644 --- a/social_auth/backends/pipeline/misc.py +++ b/social_auth/backends/pipeline/misc.py @@ -11,9 +11,9 @@ def save_status_to_session(request, auth, *args, **kwargs): try: if next_entry: - idx = PIPELINE.index(next_entry) + idx = list(PIPELINE).index(next_entry) else: - idx = PIPELINE.index(PIPELINE_ENTRY) + 1 + idx = list(PIPELINE).index(PIPELINE_ENTRY) + 1 except ValueError: idx = None