File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
"""This file defines the version of this module."""
2
- __version__ = "0.8.1 "
2
+ __version__ = "0.8.2 "
Original file line number Diff line number Diff line change 3
3
# Standard Python Libraries
4
4
from collections import OrderedDict
5
5
from datetime import datetime , timedelta
6
- from os import path , stat
6
+ from os import path , stat , utime
7
7
from typing import Dict
8
8
9
9
# Third-Party Libraries
@@ -24,12 +24,14 @@ def get_psl():
24
24
if not PublicSuffixListReadOnly :
25
25
if not path .exists (PublicSuffixListFilename ):
26
26
updatePSL (PublicSuffixListFilename )
27
+ utime (PublicSuffixListFilename , None ) # Set mtime to now
27
28
else :
28
29
psl_age = datetime .now () - datetime .fromtimestamp (
29
30
stat (PublicSuffixListFilename ).st_mtime
30
31
)
31
32
if psl_age > timedelta (hours = 24 ):
32
33
updatePSL (PublicSuffixListFilename )
34
+ utime (PublicSuffixListFilename , None ) # Set mtime to now
33
35
34
36
with open (PublicSuffixListFilename , encoding = "utf-8" ) as psl_file :
35
37
psl = PublicSuffixList (psl_file )
You can’t perform that action at this time.
0 commit comments