Skip to content

Commit

Permalink
optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
PaPerseller committed Aug 26, 2024
1 parent 5cbf143 commit 65a127b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/generate/PAC_build.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from datetime import datetime
from datetime import datetime, UTC
import ipaddress

OUT_DIR = "./"
Expand All @@ -22,7 +22,7 @@ def fetch_and_convert(src):


def main():
now = datetime.utcnow()
now = datetime.now(UTC)
date = now.strftime("%Y%m%d")
with open("./scripts/generate/code.js", "r") as f:
code = f.read()
Expand Down
4 changes: 2 additions & 2 deletions scripts/generate/acl.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
a_content = '''# 默认代理
a_content = r'''# 默认代理
[proxy_all]
# 直连列表
Expand Down Expand Up @@ -39,7 +39,7 @@
# 国内ip地址
'''

c_content = '''
c_content = r'''
[proxy_list]
# 代理关键词
(^|\.)\w*gmail\w*\.\w*$
Expand Down

0 comments on commit 65a127b

Please sign in to comment.