From 0eae52ee5ad29fa4b88674a87384a404f5777292 Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Fri, 8 Mar 2024 19:12:04 +0900 Subject: [PATCH] pyupgrade --- flask_pymemcache.py | 4 +--- test_flask_pymemcache.py | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/flask_pymemcache.py b/flask_pymemcache.py index 7dd8497..0d239e4 100644 --- a/flask_pymemcache.py +++ b/flask_pymemcache.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ pymemcache_ integration for Flask ================================= @@ -55,13 +54,12 @@ """ -from __future__ import absolute_import, division, print_function import flask import pymemcache.client import pymemcache.client.hash -class FlaskPyMemcache(object): +class FlaskPyMemcache: def __init__(self, app=None, conf_key=None): """ :type app: flask.Flask diff --git a/test_flask_pymemcache.py b/test_flask_pymemcache.py index 9871409..8e96340 100644 --- a/test_flask_pymemcache.py +++ b/test_flask_pymemcache.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import absolute_import, division, print_function from unittest import TestCase import pymemcache.client