Skip to content

Commit

Permalink
Material: fix typos
Browse files Browse the repository at this point in the history
Found via codespell
Thought this would merit a pre-0.18 release commit because of `./src/Mod/Material/StandardMaterial/TEMPLATE.FCMat`
  • Loading branch information
luzpaz committed Mar 2, 2019
1 parent ad28ba5 commit 9079de7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Mod/Material/Material.py
Expand Up @@ -49,7 +49,7 @@
"""


# see comments in module importFCMat, there is a independent parser implementaion for reading and writing FCMat files
# see comments in module importFCMat, there is an independent parser implementation for reading and writing FCMat files
# inside FreeCAD a mixture of these parsers and the ones in importFCMat.py is used


Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Material/StandardMaterial/TEMPLATE.FCMat
Expand Up @@ -5,7 +5,7 @@

; localized Name, Description and KindOfMaterial uses 2 letter codes
; defined in ISO-639-1, see https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
; find unit informations in src/App/FreeCADInit.py
; find unit information in src/App/FreeCADInit.py

[General]
; General name
Expand Down
8 changes: 4 additions & 4 deletions src/Mod/Material/importFCMat.py
Expand Up @@ -84,12 +84,12 @@ def decode(name):
# https://en.wikipedia.org/wiki/INI_file
# http://www.docuxplorer.com/WebHelp/INI_File_Format.htm
# mainly this parser here is used in FreeCAD
# in the module Material.py is another implementaion of reading and writing FCMat files which uses the module ConfigParser
# in the module Material.py is another implementation of reading and writing FCMat files which uses the module ConfigParser
# in ViewProviderFemMaterial in add_cards_from_a_dir() the parser from Material.py is used
# since this mixture seams to be there for ages it should not be changed for 0.18
# TODO: get rid of this mixture in FreeCAD 0.19

# Metainformations
# Metainformation
# first five lines are the same in any card file
# Line1: card name
# Line2: author and licence
Expand Down Expand Up @@ -124,11 +124,11 @@ def read(filename):
v = v.decode('utf-8')
d["AuthorAndLicense"] = v
else:
# ; is a Commend
# ; is a Comment
# # might be a comment too ?
# [ is a Section
if line[0] not in ";#[":
k = line.split("=", 1) # only split once on first occurence, a link could contain a = and thus would be splitted
k = line.split("=", 1) # only split once on first occurrence, a link could contain a = and thus would be splitted
if len(k) == 2:
v = k[1].strip()
if hasattr(v, "decode"):
Expand Down

0 comments on commit 9079de7

Please sign in to comment.