Skip to content

Commit

Permalink
Use the same character blacklist for Linux and FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
dbr committed May 6, 2010
1 parent b4f3626 commit d996364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tvnamer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def makeValidFilename(value, normalize_unicode = False, windows_safe = False, cu
# : is technically allowed, but Finder will treat it as / and will
# generally cause weird behaviour, so treat it as invalid.
blacklist = r"/:"
elif sysname == 'Linux':
elif sysname in ['Linux', 'FreeBSD']:
blacklist = r"/"
else:
# platform.system docs say it could also return "Windows" or "Java".
Expand Down

0 comments on commit d996364

Please sign in to comment.