MAINT: Apply pre-commit

Remove byte-order-marker pre-commit check as there would be
many adjustments necessary
This commit is contained in:
Martin Thoma
2022-03-05 09:29:23 +01:00
parent f5e33ae38f
commit e64fb6795c
536 changed files with 6267 additions and 5556 deletions

View File

@@ -7,9 +7,11 @@ Just the instructions for SUPERSTARTREK
Ported by Dave LeCompte
"""
def get_yes_no(prompt):
response = input(prompt).upper()
return response[0] != 'N'
return response[0] != "N"
def print_header():
for i in range(12):
@@ -25,6 +27,7 @@ def print_header():
for i in range(8):
print()
def print_instructions():
# Back in the 70s, at this point, the user would be prompted to
# turn on their (printing) TTY to capture the output to hard copy.
@@ -60,7 +63,7 @@ def print_instructions():
print(" WAY BETWEEN 1 AND 2 ...")
print(" . . .")
print(" VALUES MAY APPROACH 9.0, WHICH 6 7 8")
print(" ITSELF IS EQUIVALENT TO 1.0" )
print(" ITSELF IS EQUIVALENT TO 1.0")
print(" COURSE")
print(" ONE WARP FACTOR IS THE SIZE OF ")
print(" ONE QUADTANT. THEREFORE, TO GET")
@@ -134,8 +137,7 @@ def print_instructions():
print(" OPTION 5 = GALACTIC /REGION NAME/ MAP")
print(" THIS OPTION PRINTS THE NAMES OF THE SIXTEEN MAJOR ")
print(" GALACTIC REGIONS REFERRED TO IN THE GAME.")
def main():
print_header()
@@ -143,5 +145,6 @@ def main():
return
print_instructions()
if __name__ == "__main__":
main()