Tidy up pinout tool PR

This commit is contained in:
Ben Nuttall
2016-12-05 21:03:06 +00:00
parent 6e6c80a9fa
commit 02938b48ec
4 changed files with 12 additions and 9 deletions

4
gpiozero/cli/pinout.py Normal file → Executable file
View File

@@ -1,6 +1,6 @@
#!/usr/bin/env python
"""
pinout.py - gpiozero command-line pinout tool.
pinout - gpiozero command-line pinout tool.
Output Raspberry Pi GPIO pinout information.
"""
@@ -56,7 +56,7 @@ def main():
try:
pi_info().pprint(color=args.color)
except IOError:
print('This device is not a Raspberry Pi?')
print('This device is not a Raspberry Pi')
exit(2)
else:
pi_info(args.revision).pprint(color=args.color)