We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d2289d commit 4356bfeCopy full SHA for 4356bfe
lib/matplotlib/backend_bases.py
@@ -2251,8 +2251,8 @@ def get_default_filename(self):
2251
default_basename = default_basename or 'image'
2252
# Characters to be avoided in a NT path:
2253
# https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx#naming_conventions
2254
- removed_chars = \
2255
- {"posix": " /\0", "nt": r'<>:"/\|?*\0'}.get(os.name, "_")
+ # plus ' '
+ removed_chars = r'<>:"/\|?*\0 '
2256
default_basename = default_basename.translate(
2257
{ord(c): "_" for c in removed_chars})
2258
default_filetype = self.get_default_filetype()
0 commit comments