From e05364dbd5a4ca714fdea2dc72835166d7b55f7d Mon Sep 17 00:00:00 2001 From: Gavin Wahl Date: Tue, 8 Nov 2022 16:08:03 -0700 Subject: [PATCH] Fix compatibility with Django 2.0 In Django 1.10, modified_time was deprecated in favor of get_modified_time and was removed in Django 2.0 --- scss/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scss/util.py b/scss/util.py index c229438b..4a0ae629 100644 --- a/scss/util.py +++ b/scss/util.py @@ -240,7 +240,7 @@ def wrapper(*args): def getmtime(filename, storage=None): try: if storage: - d_obj = storage.modified_time(filename) + d_obj = storage.get_modified_time(filename) return int(time.mktime(d_obj.timetuple())) else: return int(os.path.getmtime(filename))