From 65a6091461838b3d22fe010e81a9a5a391bf564c Mon Sep 17 00:00:00 2001 From: quark Date: Mon, 17 Nov 2025 19:26:34 +0100 Subject: [PATCH] python3.11 -> python3.13 --- shell/oauth2_latency | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shell/oauth2_latency b/shell/oauth2_latency index 0d18ef6..e235adf 100755 --- a/shell/oauth2_latency +++ b/shell/oauth2_latency @@ -6,10 +6,10 @@ # Tested with django-oauth2-toolkit version 3.0.1 -sed -i -e "s/get_all_scopes()/get_all_scopes(scopes=scopes)/g" /var/www/note_kfet/env/lib/python3.11/site-packages/oauth2_provider/views/base.py +sed -i -e "s/get_all_scopes()/get_all_scopes(scopes=scopes)/g" /var/www/note_kfet/env/lib/python3.13/site-packages/oauth2_provider/views/base.py -sed -i -e '/get_all_scopes()/{N;s/\(.*\)\n\(.*\)/\2\n\1/;s/get_all_scopes()/get_all_scopes(scopes=token_scopes)/}' /var/www/note_kfet/env/lib/python3.11/site-packages/oauth2_provider/models.py +sed -i -e '/get_all_scopes()/{N;s/\(.*\)\n\(.*\)/\2\n\1/;s/get_all_scopes()/get_all_scopes(scopes=token_scopes)/}' /var/www/note_kfet/env/lib/python3.13/site-packages/oauth2_provider/models.py -sed -i -e '/get_all_scopes()/{N;s/\(.*\)\n\(.*\)/\2\n\1/;s/get_all_scopes()/get_all_scopes(scopes=read_write_scopes)/}' /var/www/note_kfet/env/lib/python3.11/site-packages/oauth2_provider/views/mixins.py +sed -i -e '/get_all_scopes()/{N;s/\(.*\)\n\(.*\)/\2\n\1/;s/get_all_scopes()/get_all_scopes(scopes=read_write_scopes)/}' /var/www/note_kfet/env/lib/python3.13/site-packages/oauth2_provider/views/mixins.py -sed -i -e '/get_all_scopes()/{N;s/\(.*\)\n\(.*\)/\2\n\1/;s/get_all_scopes()/get_all_scopes(scopes=read_write_scopes)/}' /var/www/note_kfet/env/lib/python3.11/site-packages/oauth2_provider/decorators.py +sed -i -e '/get_all_scopes()/{N;s/\(.*\)\n\(.*\)/\2\n\1/;s/get_all_scopes()/get_all_scopes(scopes=read_write_scopes)/}' /var/www/note_kfet/env/lib/python3.13/site-packages/oauth2_provider/decorators.py