Skip to content

Commit

Permalink
Run Black on Generated libraries (#6666)
Browse files Browse the repository at this point in the history
* blacken appveyor

* Blacken all gen'd libraries not under PR
  • Loading branch information
crwilcox authored Nov 28, 2018
1 parent 8a2b64d commit 92465cb
Show file tree
Hide file tree
Showing 567 changed files with 26,905 additions and 26,233 deletions.
30 changes: 15 additions & 15 deletions appveyor/env_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,26 @@

def env_var(var_name):
value = os.environ.get(var_name)
print('os.environ[{!r}]: {}'.format(var_name, value))
print("os.environ[{!r}]: {}".format(var_name, value))


def main():
print('os.name: {}'.format(os.name))
env_var('PYTHON_ARCH')
env_var('PYTHON_VERSION')
print('sys.platform: {}'.format(sys.platform))

if sys.maxsize == 2**63 - 1:
print('sys.maxsize: 2^(63) - 1')
elif sys.maxsize == 2**31 - 1:
print('sys.maxsize: 2^(31) - 1')
print("os.name: {}".format(os.name))
env_var("PYTHON_ARCH")
env_var("PYTHON_VERSION")
print("sys.platform: {}".format(sys.platform))

if sys.maxsize == 2 ** 63 - 1:
print("sys.maxsize: 2^(63) - 1")
elif sys.maxsize == 2 ** 31 - 1:
print("sys.maxsize: 2^(31) - 1")
else:
print('sys.maxsize: {}'.format(sys.maxsize))
print("sys.maxsize: {}".format(sys.maxsize))

print('sys.version:\n{}'.format(sys.version))
bitness = struct.calcsize('P') * 8
print('struct.calcsize(\'P\') * 8: {}'.format(bitness))
print("sys.version:\n{}".format(sys.version))
bitness = struct.calcsize("P") * 8
print("struct.calcsize('P') * 8: {}".format(bitness))


if __name__ == '__main__':
if __name__ == "__main__":
main()
Loading

0 comments on commit 92465cb

Please sign in to comment.