mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 09:21:37 +00:00
use path.stem
to make the Reddit filename prefix
This commit is contained in:
parent
16059d3b9a
commit
ff1f0e4678
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user