Skip to content

Commit 2cf8097

Browse files
committed
Whitespace fix, stage 1
1 parent 785f6c7 commit 2cf8097

File tree

62 files changed

+2764
-2326
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+2764
-2326
lines changed

nsiqcppstyle.py

+17-14
Original file line numberDiff line numberDiff line change
@@ -29,30 +29,34 @@
2929
#
3030
import sys
3131
import os
32-
import csv #@UnusedImport
33-
import urllib #@UnusedImport
32+
import csv # @UnusedImport
33+
import urllib # @UnusedImport
3434
try:
35-
import hashlib #@UnusedImport
35+
import hashlib # @UnusedImport
3636
except ImportError:
37-
import md5 #@UnusedImport
38-
import unittest #@UnusedImport
39-
import platform #@UnusedImport
40-
import sre_compile #@UnusedImport
41-
import shutil #@UnusedImport
37+
import md5 # @UnusedImport
38+
import unittest # @UnusedImport
39+
import platform # @UnusedImport
40+
import sre_compile # @UnusedImport
41+
import shutil # @UnusedImport
42+
4243

4344
def WeAreFrozen():
4445
return hasattr(sys, "frozen")
4546

47+
4648
def ModulePath():
4749
if WeAreFrozen():
48-
return os.path.dirname(unicode(sys.executable, sys.getfilesystemencoding()))
50+
return os.path.dirname(
51+
unicode(sys.executable, sys.getfilesystemencoding()))
4952
return os.path.dirname(unicode(__file__, sys.getfilesystemencoding()))
5053

51-
def GetRuntimePath() :
54+
55+
def GetRuntimePath():
5256
"Return the path of this tool"
53-
if (sys.platform == "win32") :
54-
runtimePath = ModulePath();
55-
else :
57+
if (sys.platform == "win32"):
58+
runtimePath = ModulePath()
59+
else:
5660
modename = globals()['__name__']
5761
module = sys.modules[modename]
5862
runtimePath = os.path.dirname(module.__file__)
@@ -63,4 +67,3 @@ def GetRuntimePath() :
6367
sys.path.append(GetRuntimePath())
6468
module = __import__("nsiqcppstyle_exe")
6569
sys.exit(module.main())
66-

0 commit comments

Comments
 (0)