mirror of
https://github.com/electron/electron.git
synced 2026-01-06 22:24:03 -05:00
* build: bump pylint to 2.17 Xref: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5062345 * fix pylint consider-using-f-string warnings pt 1: use flynt for automated fixes * fix pylint consider-using-f-string warnings pt 2: manual fixes * fix pylint consider-using-with warnings * fix pylint line-too-long warnings * fix pylint unspecified-encoding warnings * fix py lint consider-using-generator warning * fixup! fix pylint unspecified-encoding warnings * fix pylint line-too-long warnings
13 lines
250 B
Python
13 lines
250 B
Python
import os
|
|
import sys
|
|
import tarfile
|
|
|
|
source = sys.argv[1]
|
|
target = sys.argv[2]
|
|
|
|
os.chdir(os.path.dirname(source))
|
|
|
|
with tarfile.open(name=os.path.basename(target), mode='w:gz') as tarball:
|
|
tarball.add(os.path.relpath(source))
|
|
tarball.close()
|