Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.12.0
rev: 26.1.0
hooks:
- id: black
- repo: https://github.com/collective/zpretty
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from setuptools import setup


version = "5.0.0a2.dev0"
longdescription = open("README.rst").read()
longdescription += "\n"
Expand Down
1 change: 0 additions & 1 deletion src/plone/session/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from plone.session.plugins import session
from Products.PluggableAuthService.PluggableAuthService import registerMultiPlugin


registerMultiPlugin(session.SessionPlugin.meta_type)


Expand Down
5 changes: 2 additions & 3 deletions src/plone/session/plugins/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import binascii
import time


EMPTY_GIF = (
"GIF89a\x01\x00\x01\x00\xf0\x01\x00\xff\xff\xff"
"\x00\x00\x00!\xf9\x04\x01\n\x00\x00\x00"
Expand Down Expand Up @@ -217,7 +216,7 @@ def authenticateCredentials(self, credentials):
ticket_data = self._validateTicket(ticket)
if ticket_data is None:
return None
(digest, userid, tokens, user_data, timestamp) = ticket_data
digest, userid, tokens, user_data, timestamp = ticket_data
pas = self._getPAS()
info = pas._verifyUser(pas.plugins, user_id=userid)
if info is None:
Expand Down Expand Up @@ -413,7 +412,7 @@ def _refreshSession(self, request, now=None):
ticket_data = self._validateTicket(ticket, now)
if ticket_data is None:
return None
(digest, userid, tokens, user_data, timestamp) = ticket_data
digest, userid, tokens, user_data, timestamp = ticket_data
self._setupSession(userid, request.response, tokens, user_data)
return True

Expand Down
1 change: 0 additions & 1 deletion src/plone/session/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

import doctest


folder_name = "test_folder_1_"
user_name = "test_user_1_"
user_password = "secret"
Expand Down
1 change: 0 additions & 1 deletion src/plone/session/tests/testDocTests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import doctest
import unittest


optionflags = doctest.ELLIPSIS


Expand Down
2 changes: 1 addition & 1 deletion src/plone/session/tktauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def validateTicket(
secret, ticket, ip="0.0.0.0", timeout=0, now=None, encoding=None, mod_auth_tkt=False
):
try:
(digest, userid, tokens, user_data, timestamp) = data = splitTicket(ticket)
digest, userid, tokens, user_data, timestamp = data = splitTicket(ticket)
except ValueError:
return None
new_ticket = createTicket(
Expand Down
Loading