Skip to content

Commit 92465cb

Browse files
authored
Run Black on Generated libraries (#6666)
* blacken appveyor * Blacken all gen'd libraries not under PR
1 parent 8a2b64d commit 92465cb

File tree

567 files changed

+26905
-26233
lines changed

Some content is hidden

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

567 files changed

+26905
-26233
lines changed

appveyor/env_info.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,26 @@
2323

2424
def env_var(var_name):
2525
value = os.environ.get(var_name)
26-
print('os.environ[{!r}]: {}'.format(var_name, value))
26+
print("os.environ[{!r}]: {}".format(var_name, value))
2727

2828

2929
def main():
30-
print('os.name: {}'.format(os.name))
31-
env_var('PYTHON_ARCH')
32-
env_var('PYTHON_VERSION')
33-
print('sys.platform: {}'.format(sys.platform))
34-
35-
if sys.maxsize == 2**63 - 1:
36-
print('sys.maxsize: 2^(63) - 1')
37-
elif sys.maxsize == 2**31 - 1:
38-
print('sys.maxsize: 2^(31) - 1')
30+
print("os.name: {}".format(os.name))
31+
env_var("PYTHON_ARCH")
32+
env_var("PYTHON_VERSION")
33+
print("sys.platform: {}".format(sys.platform))
34+
35+
if sys.maxsize == 2 ** 63 - 1:
36+
print("sys.maxsize: 2^(63) - 1")
37+
elif sys.maxsize == 2 ** 31 - 1:
38+
print("sys.maxsize: 2^(31) - 1")
3939
else:
40-
print('sys.maxsize: {}'.format(sys.maxsize))
40+
print("sys.maxsize: {}".format(sys.maxsize))
4141

42-
print('sys.version:\n{}'.format(sys.version))
43-
bitness = struct.calcsize('P') * 8
44-
print('struct.calcsize(\'P\') * 8: {}'.format(bitness))
42+
print("sys.version:\n{}".format(sys.version))
43+
bitness = struct.calcsize("P") * 8
44+
print("struct.calcsize('P') * 8: {}".format(bitness))
4545

4646

47-
if __name__ == '__main__':
47+
if __name__ == "__main__":
4848
main()

0 commit comments

Comments
 (0)