use path.stem to make the Reddit filename prefix

Former-commit-id: ff1f0e4678
This commit is contained in:
Robyn Speer 2016-03-31 13:13:52 -04:00
parent a2bc90e430
commit 797895047a

View File

@ -240,7 +240,7 @@ def reddit_base_filename(path):
"""
Get the base name of a Reddit input file, without its path or extension.
"""
return path.name[:-4]
return path.stem
def reddit_deps(dirname_in, languages):