Pythonify the 'interpret_fileName function'

pull/22480/head
Matej Jeglic 2 years ago
parent 6cc0107693
commit 4bec43cf79
  1. 7
      doc/pattern_tools/svgfig.py

@ -449,10 +449,9 @@ class SVG:
return output return output
def interpret_fileName(self, fileName=None): @staticmethod
if fileName is None: def interpret_fileName(fileName=None):
fileName = _default_fileName return fileName or _default_fileName
return fileName
def save(self, fileName=None, encoding="utf-8", compresslevel=None): def save(self, fileName=None, encoding="utf-8", compresslevel=None):
"""Save to a file for viewing. Note that svg.save() overwrites the file named _default_fileName. """Save to a file for viewing. Note that svg.save() overwrites the file named _default_fileName.

Loading…
Cancel
Save