mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 00:07:51 -06:00
Prevent deleting comments from Start/End G-codes by changing the comment_prefixes in ConfigParser
CURA/6994
This commit is contained in:
parent
726561bf30
commit
74d919a5d2
3 changed files with 3 additions and 3 deletions
|
@ -239,7 +239,7 @@ class VersionUpgrade41to42(VersionUpgrade):
|
|||
#
|
||||
# This renames the renamed settings in the containers.
|
||||
def upgradeInstanceContainer(self, serialized: str, filename: str) -> Tuple[List[str], List[str]]:
|
||||
parser = configparser.ConfigParser(interpolation = None)
|
||||
parser = configparser.ConfigParser(interpolation = None, comment_prefixes=())
|
||||
parser.read_string(serialized)
|
||||
|
||||
# Update version number.
|
||||
|
|
|
@ -104,7 +104,7 @@ class VersionUpgrade42to43(VersionUpgrade):
|
|||
#
|
||||
# This renames the renamed settings in the containers.
|
||||
def upgradeInstanceContainer(self, serialized: str, filename: str) -> Tuple[List[str], List[str]]:
|
||||
parser = configparser.ConfigParser(interpolation = None)
|
||||
parser = configparser.ConfigParser(interpolation = None, comment_prefixes=())
|
||||
parser.read_string(serialized)
|
||||
|
||||
# Update version number.
|
||||
|
|
|
@ -52,7 +52,7 @@ class VersionUpgrade43to44(VersionUpgrade):
|
|||
#
|
||||
# This renames the renamed settings in the containers.
|
||||
def upgradeInstanceContainer(self, serialized: str, filename: str) -> Tuple[List[str], List[str]]:
|
||||
parser = configparser.ConfigParser(interpolation = None)
|
||||
parser = configparser.ConfigParser(interpolation = None, comment_prefixes=())
|
||||
parser.read_string(serialized)
|
||||
|
||||
# Update version number.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue