changeset 24:1bce0c6a673c

Comments.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 04 Jul 2016 14:30:22 +0300
parents ff47f8088ef9
children d32e4d4ef163
files multimerge.py
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/multimerge.py	Mon Jul 04 14:20:56 2016 +0300
+++ b/multimerge.py	Mon Jul 04 14:30:22 2016 +0300
@@ -69,12 +69,13 @@
         gcm_msgbuf.append(u"DBG: "+ smsg.encode("UTF-8"))
 
 
-## Handle SIGINT signals here
+## Handler for SIGINT signals
 def gcm_signal_handler(signal, frame):
     gcm_print("\nQuitting due to SIGINT / Ctrl+C!")
     sys.exit(0)
 
 
+## Function for handling Google API credentials
 def gcm_get_credentials(mcfg):
     store = oauth2client.file.Storage(mcfg.credential_file)
     credentials = store.get()
@@ -94,8 +95,9 @@
         gcm_print(u"{0:25} - {1:25} : {2}".format(ev_start, ev_end, event["summary"]))
 
 
-
-
+##
+## Class for handling configuration / settings
+##
 class GCMSettings(dict):
     def __init__(self):
         self.m_data = {}