From 5aa381f06513585399c42c18b8cafd82d4af80d1 Mon Sep 17 00:00:00 2001 From: Muzahid Date: Tue, 16 Mar 2021 15:00:40 +0530 Subject: [PATCH] fir import error --- src/bmconfigparser.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/bmconfigparser.py b/src/bmconfigparser.py index ff43fd7c..269d2deb 100644 --- a/src/bmconfigparser.py +++ b/src/bmconfigparser.py @@ -2,7 +2,12 @@ BMConfigParser class definition and default configuration settings """ -import ConfigParser +# import Queue +try: + import configparser as ConfigParser #python3 +except ImportError: + import ConfigParser #python2 + import os import shutil from datetime import datetime