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
Former-commit-id: ff1f0e4678
This commit is contained in:
parent
a2bc90e430
commit
797895047a
@ -240,7 +240,7 @@ def reddit_base_filename(path):
|
|||||||
"""
|
"""
|
||||||
Get the base name of a Reddit input file, without its path or extension.
|
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):
|
def reddit_deps(dirname_in, languages):
|
||||||
|
Loading…
Reference in New Issue
Block a user