summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrahulp132020-08-06 00:36:46 +0530
committerrahulp132020-08-06 00:36:46 +0530
commit570bc95f225ac80c81405a40a29ef90ca5442fc5 (patch)
tree2263eea200058f12f9a24bf73d3a689a2eda8d91
parent0906214c276402584eb2e1910173d271350f8399 (diff)
downloadnghdl-570bc95f225ac80c81405a40a29ef90ca5442fc5.tar.gz
nghdl-570bc95f225ac80c81405a40a29ef90ca5442fc5.tar.bz2
nghdl-570bc95f225ac80c81405a40a29ef90ca5442fc5.zip
replaced deprecated SafeConfigParser with ConfigParser
-rwxr-xr-xsrc/ngspice_ghdl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngspice_ghdl.py b/src/ngspice_ghdl.py
index 3a89ea1..9ae499d 100755
--- a/src/ngspice_ghdl.py
+++ b/src/ngspice_ghdl.py
@@ -7,7 +7,7 @@ import sys
import shutil
import subprocess
from PyQt5 import QtGui, QtCore, QtWidgets
-from configparser import SafeConfigParser
+from configparser import ConfigParser
from Appconfig import Appconfig
from createKicadLibrary import AutoSchematic
from model_generation import ModelGeneration
@@ -22,7 +22,7 @@ class Mainwindow(QtWidgets.QWidget):
self.home = os.path.expanduser("~")
# Reading all variables from config.ini
- self.parser = SafeConfigParser()
+ self.parser = ConfigParser()
self.parser.read(
os.path.join(self.home, os.path.join('.nghdl', 'config.ini'))
)