From 034d8f540bcb66810d0ef510ec0915a8c7c21d46 Mon Sep 17 00:00:00 2001 From: Robyn Speer Date: Thu, 24 Mar 2016 16:52:44 -0400 Subject: [PATCH] fix extraneous dot in intermediate filenames Former-commit-id: 6feae99381ff03749552cc77ff6b7da4b1db05a6 --- wordfreq_builder/wordfreq_builder/ninja.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wordfreq_builder/wordfreq_builder/ninja.py b/wordfreq_builder/wordfreq_builder/ninja.py index 6c72e81..111c0ab 100644 --- a/wordfreq_builder/wordfreq_builder/ninja.py +++ b/wordfreq_builder/wordfreq_builder/ninja.py @@ -253,7 +253,7 @@ def reddit_deps(dirname_in, languages): # .txt.gz files for filepath in path_in.glob('*/*.bz2'): base = reddit_base_filename(filepath) - transformed_file = wordlist_filename('reddit', base + '.all', '.txt') + transformed_file = wordlist_filename('reddit', base + '.all', 'txt') slices[base] = transformed_file add_dep(lines, 'extract_reddit', str(filepath), transformed_file) @@ -261,7 +261,7 @@ def reddit_deps(dirname_in, languages): transformed_file = slices[base] language_outputs = [] for language in languages: - filename = wordlist_filename('reddit', base + '.' + language, '.txt') + filename = wordlist_filename('reddit', base + '.' + language, 'txt') language_outputs.append(filename) count_filename = wordlist_filename('reddit', base + '.' + language, 'counts.txt') @@ -270,7 +270,7 @@ def reddit_deps(dirname_in, languages): # find the prefix by constructing a filename, then stripping off # '.xx.txt' from the end - prefix = wordlist_filename('reddit', base + '.xx', '.txt')[:-7] + prefix = wordlist_filename('reddit', base + '.xx', 'txt')[:-7] add_dep(lines, 'tokenize_reddit', transformed_file, language_outputs, params={'prefix': prefix}, extra='wordfreq_builder/tokenizers.py')