From ecd264837290876e297a2f75adbaae19d7e14e54 Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Mon, 29 Jun 2015 14:58:39 -0500 Subject: [PATCH] remove commented code --- dmrlink.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/dmrlink.py b/dmrlink.py index 9e47691..707293a 100755 --- a/dmrlink.py +++ b/dmrlink.py @@ -600,19 +600,11 @@ if REPORTS['REPORT_NETWORKS'] == 'PICKLE': file.close() except IOError as detail: logger.error('I/O Error: %s', detail) - -''' -JSON DOES NOT WORK, AND MAY NEVER... NEED TO FIX IT OR REMOVE IT + elif REPORTS['REPORT_NETWORKS'] == 'JSON': def reporting_loop(): logger.info('Periodic Reporting Loop Started (JSON)') - try: - with open(REPORTS['REPORT_PATH']+'dmrlink_stats.json', 'wb') as file: - pass - file.close() - except IOError as detail: - logger.error('I/O Error: %s', detail) -''' + elif REPORTS['REPORT_NETWORKS'] == 'REDIS': def reporting_loop(): logger.debug('Periodic Reporting Loop Started (REDIS)')