summaryrefslogtreecommitdiff
path: root/updateForge.py
diff options
context:
space:
mode:
authortxtsd <thexerothermicsclerodermoid@gmail.com>2022-04-06 17:55:54 +0530
committertxtsd <thexerothermicsclerodermoid@gmail.com>2022-04-06 17:55:54 +0530
commitc8fa8f41250a98dcb77e3aaba1aa9a95623a4a7e (patch)
treee83585f1d4393f2c55270444c51279336d25dbda /updateForge.py
parent0201def4c59a8197e6f8b999e40e04f05c333f0e (diff)
downloadProject-Tick-c8fa8f41250a98dcb77e3aaba1aa9a95623a4a7e.tar.gz
Project-Tick-c8fa8f41250a98dcb77e3aaba1aa9a95623a4a7e.zip
chore: Remove argument when equal to default parameter value
Diffstat (limited to 'updateForge.py')
-rwxr-xr-xupdateForge.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/updateForge.py b/updateForge.py
index 7552bf11ad..736e3dd9ea 100755
--- a/updateForge.py
+++ b/updateForge.py
@@ -271,9 +271,9 @@ def main():
# harvestables from the installer
if not os.path.isfile(profile_path):
print(jar_path)
- with zipfile.ZipFile(jar_path, 'r') as jar:
+ with zipfile.ZipFile(jar_path) as jar:
with suppress(KeyError):
- with jar.open('version.json', 'r') as profile_zip_entry:
+ with jar.open('version.json') as profile_zip_entry:
version_data = profile_zip_entry.read()
# Process: does it parse?
@@ -283,7 +283,7 @@ def main():
versionJsonFile.write(version_data)
versionJsonFile.close()
- with jar.open('install_profile.json', 'r') as profile_zip_entry:
+ with jar.open('install_profile.json') as profile_zip_entry:
install_profile_data = profile_zip_entry.read()
# Process: does it parse?
@@ -335,7 +335,7 @@ def main():
f.write(chunk)
# find the latest timestamp in the zip file
tstamp = datetime.fromtimestamp(0)
- with zipfile.ZipFile(jar_path, 'r') as jar:
+ with zipfile.ZipFile(jar_path) as jar:
for info in jar.infolist():
tstamp_new = datetime(*info.date_time)
if tstamp_new > tstamp: