From 8cc8e72c0ddb3a93c7ae2bc737be0b3f93c3850b Mon Sep 17 00:00:00 2001 From: Vikashyadav-8090 <73946352+Vikashyadav-8090@users.noreply.github.com> Date: Fri, 13 Nov 2020 01:11:52 +0530 Subject: [PATCH] Update main.py comments were added for better understanding of codes and it makes it more informative and good looking . --- arjuna/main.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arjuna/main.py b/arjuna/main.py index 868c7dc1..3e4bf1be 100644 --- a/arjuna/main.py +++ b/arjuna/main.py @@ -15,13 +15,17 @@ # See the License for the specific language governing permissions and # limitations under the License. -import os -import sys -import time +import os # os is a operating system by this module we can interact with our operating system , famous module provided by python +import sys # it is a system module which can be used in various thing but some of them are sys.exit(1) is used to exit the condition +import time # this time module is used to return time into seconds. def main(*args): print("Executing Arjuna command line with args: {}".format(args)) try: + """ + by usnig try and exception we can print the errors occured during our programmes , as python is a interpreted language so it wil check line by line and if some error + occured it will stop to avoiding this we usually print that error in ecxception. when tries failed + """" import signal import sys def signal_handler(sig, frame):