mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
format
This commit is contained in:
parent
ce2682a37f
commit
8e05c3ff0b
@ -5,11 +5,6 @@ class ConfigParser():
|
|||||||
content = ''
|
content = ''
|
||||||
config_dict = {}
|
config_dict = {}
|
||||||
|
|
||||||
def read(self, file_name):
|
|
||||||
print('Error: read() method not implemented')
|
|
||||||
raise
|
|
||||||
self._parse()
|
|
||||||
|
|
||||||
def read_string(self, content):
|
def read_string(self, content):
|
||||||
self.content = content
|
self.content = content
|
||||||
self._parse()
|
self._parse()
|
||||||
@ -96,3 +91,8 @@ class ConfigParser():
|
|||||||
print('Error: write() method not implemented')
|
print('Error: write() method not implemented')
|
||||||
print(self.content)
|
print(self.content)
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
def read(self, file_name):
|
||||||
|
print('Error: read() method not implemented')
|
||||||
|
raise
|
||||||
|
self._parse()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user