Fixes issue # 1554:

Replaced "== None" and "!= None" with "is None" and "is not None", respectively, because the former is slower and error-prone.
This commit is contained in:
Per A. Brodtkorb
2020-03-23 11:53:36 +01:00
parent ef1edacc20
commit fc1823315b
50 changed files with 174 additions and 174 deletions

View File

@@ -224,7 +224,7 @@ class MSVCProjectBuilder(Builder):
if os.environ.has_key(key):
self.programDir = os.path.join(os.environ[key], "..", "IDE")
if self.programDir == None:
if self.programDir is None:
for version in ["9.0", "8", ".NET 2003"]:
msvcDir = "C:\\Program Files\\Microsoft Visual Studio %s\\Common7\\IDE" % version
if os.path.exists(msvcDir):