|
44 | 44 | # pylint: disable=consider-using-f-string |
45 | 45 | # pylint: disable=too-few-public-methods |
46 | 46 | # pylint: disable=useless-object-inheritance |
| 47 | +# pylint: disable=possibly-used-before-assignment |
47 | 48 |
|
48 | 49 | from __future__ import absolute_import, print_function, unicode_literals |
49 | 50 |
|
@@ -338,7 +339,7 @@ def build(self): |
338 | 339 | self.file_name))[0], |
339 | 340 | self.configuration)) |
340 | 341 | cmd = ['cmdide', '-proj', '-bcwef', error_file, |
341 | | - '-y', cw_path, '-z', self.configuration, self.file_name] |
| 342 | + '-y', cw_path, '-z', self.configuration, self.file_name] |
342 | 343 |
|
343 | 344 | if self.verbose: |
344 | 345 | print(' '.join(cmd)) |
@@ -397,7 +398,7 @@ def match(filename): |
397 | 398 |
|
398 | 399 |
|
399 | 400 | def create_build_object(file_name, priority=50, |
400 | | - configurations=None, verbose=False): |
| 401 | + configurations=None, verbose=False): |
401 | 402 | """ |
402 | 403 | Create BuildMakeFile build records for every desired configuration |
403 | 404 |
|
@@ -434,13 +435,13 @@ def create_build_object(file_name, priority=50, |
434 | 435 | if '68K Linker' in linkers: |
435 | 436 | print( |
436 | 437 | ('"{}" requires a 68k linker ' |
437 | | - 'which Windows doesn\'t support.').format(file_name)) |
| 438 | + 'which Windows doesn\'t support.').format(file_name)) |
438 | 439 | return [] |
439 | 440 |
|
440 | 441 | if 'PPC Linker' in linkers: |
441 | 442 | print( |
442 | 443 | ('"{}" requires a PowerPC linker ' |
443 | | - 'which Windows doesn\'t support.').format(file_name)) |
| 444 | + 'which Windows doesn\'t support.').format(file_name)) |
444 | 445 | return [] |
445 | 446 |
|
446 | 447 | # If everything is requested, then only build 'Everything' |
@@ -473,7 +474,7 @@ def create_build_object(file_name, priority=50, |
473 | 474 |
|
474 | 475 |
|
475 | 476 | def create_clean_object(file_name, priority=50, |
476 | | - configurations=None, verbose=False): |
| 477 | + configurations=None, verbose=False): |
477 | 478 | """ |
478 | 479 | Create BuildMakeFile build records for every desired configuration |
479 | 480 |
|
@@ -510,13 +511,13 @@ def create_clean_object(file_name, priority=50, |
510 | 511 | if '68K Linker' in linkers: |
511 | 512 | print( |
512 | 513 | ("\"{}\" requires a 68k linker " |
513 | | - "which Windows doesn't support.").format(file_name)) |
| 514 | + "which Windows doesn't support.").format(file_name)) |
514 | 515 | return [] |
515 | 516 |
|
516 | 517 | if "PPC Linker" in linkers: |
517 | 518 | print( |
518 | 519 | ('"{}" requires a PowerPC linker ' |
519 | | - 'which Windows doesn\'t support.').format(file_name)) |
| 520 | + 'which Windows doesn\'t support.').format(file_name)) |
520 | 521 | return [] |
521 | 522 |
|
522 | 523 | # If everything is requested, then only build 'Everything' |
@@ -1132,7 +1133,7 @@ def generate(self, line_list, level=4): |
1132 | 1133 | line_list.append(tabs + "<FILE>") |
1133 | 1134 | line_list.append(tabs2 + "<PATHTYPE>Name</PATHTYPE>") |
1134 | 1135 | line_list.append(tabs2 + "<PATH>" + self.filename + "</PATH>") |
1135 | | - line_list.append(tabs2 + "<PATHFORMAT>" + \ |
| 1136 | + line_list.append(tabs2 + "<PATHFORMAT>" + |
1136 | 1137 | self.format + "</PATHFORMAT>") |
1137 | 1138 | line_list.append(tabs2 + "<FILEKIND>" + self.kind + "</FILEKIND>") |
1138 | 1139 | line_list.append(tabs2 + "<FILEFLAGS>" + self.flags + "</FILEFLAGS>") |
@@ -1175,7 +1176,7 @@ def generate(self, line_list, level=4): |
1175 | 1176 | "</TARGETNAME>") |
1176 | 1177 | line_list.append(tabs2 + "<PATHTYPE>Name</PATHTYPE>") |
1177 | 1178 | line_list.append(tabs2 + "<PATH>" + self.filename + "</PATH>") |
1178 | | - line_list.append(tabs2 + "<PATHFORMAT>" + \ |
| 1179 | + line_list.append(tabs2 + "<PATHFORMAT>" + |
1179 | 1180 | self.format + "</PATHFORMAT>") |
1180 | 1181 | line_list.append(tabs + "</FILEREF>") |
1181 | 1182 |
|
@@ -1572,7 +1573,8 @@ def __init__(self, solution, projectname=None, |
1572 | 1573 | break |
1573 | 1574 | else: |
1574 | 1575 | # Insert the library |
1575 | | - item = "MFCcw_D.lib" if configuration.debug else "MFCcw.lib" |
| 1576 | + item = "MFCcw_D.lib" \ |
| 1577 | + if configuration.debug else "MFCcw.lib" |
1576 | 1578 | liblist.insert(0, item) |
1577 | 1579 |
|
1578 | 1580 | # Generate the file and group lists |
|
0 commit comments