mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Make documentation specify filename without extension
Contributes to issue CURA-844.
This commit is contained in:
parent
e6efba3868
commit
8f5e56c66e
4 changed files with 16 additions and 9 deletions
|
@ -10,7 +10,8 @@ import UM.VersionUpgrade #To indicate that a file is of the wrong format.
|
|||
# in version 1 of the file format.
|
||||
#
|
||||
# \param serialised The serialised form of a preferences file in version 1.
|
||||
# \param filename The supposed filename of the preferences file.
|
||||
# \param filename The supposed filename of the preferences file, without
|
||||
# extension.
|
||||
# \return A representation of those preferences, or None if the file format is
|
||||
# incorrect.
|
||||
def importFrom(serialised, filename):
|
||||
|
@ -25,7 +26,8 @@ class Preferences:
|
|||
## Reads version 2 of the preferences file format, storing it in memory.
|
||||
#
|
||||
# \param serialised A serialised version 2 preferences file.
|
||||
# \param filename The supposed filename of the preferences file.
|
||||
# \param filename The supposed filename of the preferences file, without
|
||||
# extension.
|
||||
def __init__(self, serialised, filename):
|
||||
self._filename = filename
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue