From 8388e0dfea4ae0d80e51368acd12685c740c5bb5 Mon Sep 17 00:00:00 2001 From: Jordi Vilalta Prat Date: Tue, 12 Oct 2010 02:18:11 +0000 Subject: JANITORAL: Clean trailing whitespaces. svn-id: r53160 --- backends/vkeybd/packs/vkeybdpack.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'backends/vkeybd') diff --git a/backends/vkeybd/packs/vkeybdpack.py b/backends/vkeybd/packs/vkeybdpack.py index 130e4b737b..b0cd4c45e9 100755 --- a/backends/vkeybd/packs/vkeybdpack.py +++ b/backends/vkeybd/packs/vkeybdpack.py @@ -16,9 +16,9 @@ def buildPack(packName): if not os.path.isdir(packName): print ("Invalid pack name: " + packName) return - + zf = zipfile.ZipFile(packName + ".zip", 'w') - + zf.compress_type = zipfile.ZIP_DEFLATED print ("Building '" + packName + "' pack:") @@ -28,9 +28,9 @@ def buildPack(packName): if os.path.isfile(filename) and not filename[0] == '.' and filename.endswith(PACK_FILE_EXTENSIONS): zf.write(filename, './' + filename, compress_type=compression) print (" Adding file: " + filename) - + os.chdir('../') - + zf.close() def buildAllPacks(): @@ -49,13 +49,13 @@ def printUsage(): print (" Builds the pack called 'packname'.\n") def main(): - + if len(sys.argv) == 2 and sys.argv[1] == "makeall": buildAllPacks() - + elif len(sys.argv) == 3 and sys.argv[1] == "make": buildPack(sys.argv[2]) - + else: printUsage() -- cgit v1.2.3