Change several python and robot files to 110 chars
Taking advantage of current team limit of 110 chars.
Change-Id: If7ab51fe894889967b8c8bb2f2fa4664f01117d5
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/bin/obmc_ser_num b/bin/obmc_ser_num
index 4269e42..6d2efeb 100755
--- a/bin/obmc_ser_num
+++ b/bin/obmc_ser_num
@@ -1,8 +1,7 @@
#!/usr/bin/env python
r"""
-This program will get the system serial number from an OBMC machine and print
-it to stdout.
+This program will get the system serial number from an OBMC machine and print it to stdout.
"""
import sys
@@ -50,8 +49,7 @@
def exit_function(signal_number=0,
frame=None):
r"""
- Execute whenever the program ends normally or with the signals that we
- catch (i.e. TERM, INT).
+ Execute whenever the program ends normally or with the signals that we catch (i.e. TERM, INT).
"""
dprint_executing()
@@ -63,25 +61,22 @@
def signal_handler(signal_number,
frame):
r"""
- Handle signals. Without a function to catch a SIGTERM or SIGINT, our
- program would terminate immediately with return code 143 and without
- calling our exit_function.
+ Handle signals. Without a function to catch a SIGTERM or SIGINT, our program would terminate immediately
+ with return code 143 and without calling our exit_function.
"""
- # Our convention is to set up exit_function with atexit.register() so
- # there is no need to explicitly call exit_function from here.
+ # Our convention is to set up exit_function with atexit.register() so there is no need to explicitly
+ # call exit_function from here.
dprint_executing()
- # Calling exit prevents us from returning to the code that was running
- # when we received the signal.
+ # Calling exit prevents us from returning to the code that was running when we received the signal.
exit(0)
def validate_parms():
r"""
- Validate program parameters, etc. Return True or False (i.e. pass/fail)
- accordingly.
+ Validate program parameters, etc. Return True or False (i.e. pass/fail) accordingly.
"""
gen_post_validation(exit_function, signal_handler)
@@ -94,8 +89,7 @@
Create and return an http prefix string.
Description of argument(s):
- host The host being communicated with via the
- curl command.
+ host The host being communicated with via the curl command.
"""
return "https://" + host + "/"