diff options
author | rahulp13 | 2020-08-03 12:48:56 +0530 |
---|---|---|
committer | rahulp13 | 2020-08-03 12:48:56 +0530 |
commit | a236dc440e2242cc9b0005befb56c84980a4ca47 (patch) | |
tree | 69d0b076218d0db7d44c5927f1a76b25752cd249 | |
parent | 816e3663300c26bc0591070496b154ff96393860 (diff) | |
download | eSim-a236dc440e2242cc9b0005befb56c84980a4ca47.tar.gz eSim-a236dc440e2242cc9b0005befb56c84980a4ca47.tar.bz2 eSim-a236dc440e2242cc9b0005befb56c84980a4ca47.zip |
replaced deprecated SafeConfigParser with ConfigParser
-rw-r--r-- | src/configuration/Appconfig.py | 12 | ||||
-rw-r--r-- | src/ngspiceSimulation/NgspiceWidget.py | 4 |
2 files changed, 9 insertions, 7 deletions
diff --git a/src/configuration/Appconfig.py b/src/configuration/Appconfig.py index 94abb44c..96514f85 100644 --- a/src/configuration/Appconfig.py +++ b/src/configuration/Appconfig.py @@ -13,13 +13,13 @@ # MODIFIED: Rahul Paknikar, rahulp@iitb.ac.in # ORGANIZATION: eSim Team at FOSSEE, IIT Bombay # CREATED: Tuesday 24 February 2015 -# REVISION: Saturday 25 July 2020 +# REVISION: Sunday 02 August 2020 # ========================================================================= from PyQt5 import QtWidgets import os import json -from configparser import SafeConfigParser +from configparser import ConfigParser class Appconfig(QtWidgets.QWidget): @@ -63,7 +63,7 @@ class Appconfig(QtWidgets.QWidget): noteArea = {"Note": []} - parser_esim = SafeConfigParser() + parser_esim = ConfigParser() parser_esim.read( os.path.join( os.path.expanduser("~"), @@ -100,10 +100,12 @@ class Appconfig(QtWidgets.QWidget): def __init__(self): super(Appconfig, self).__init__() + # Application Details self._APPLICATION = 'eSim' - self._VERSION = 'v2.1.0' - self._AUTHOR = 'Fahim, Rahul' + self._VERSION = '2.1' + self._AUTHOR = 'Fahim' + self._REVISION = 'Rahul' # Application geometry setting self._app_xpos = 100 diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py index 32991884..ea64893b 100644 --- a/src/ngspiceSimulation/NgspiceWidget.py +++ b/src/ngspiceSimulation/NgspiceWidget.py @@ -1,6 +1,6 @@ from PyQt5 import QtWidgets, QtCore from configuration.Appconfig import Appconfig -from configparser import SafeConfigParser +from configparser import ConfigParser import os @@ -25,7 +25,7 @@ class NgspiceWidget(QtWidgets.QWidget): if os.name == 'nt': # For Windows OS home = os.path.expanduser("~") - parser_nghdl = SafeConfigParser() + parser_nghdl = ConfigParser() parser_nghdl.read(os.path.join( home, os.path.join('.nghdl', 'config.ini'))) |