use path.stem to make the Reddit filename prefix

This commit is contained in:
Rob Speer 2016-03-31 13:13:52 -04:00
parent 16059d3b9a
commit ff1f0e4678

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):