From af362480d5bdb7395dd482a39898013fb723dd27 Mon Sep 17 00:00:00 2001 From: Joshua Chin Date: Tue, 7 Jul 2015 16:00:37 -0400 Subject: [PATCH] added documentation to load ranges --- wordfreq/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wordfreq/__init__.py b/wordfreq/__init__.py index bf68f14..afb1971 100644 --- a/wordfreq/__init__.py +++ b/wordfreq/__init__.py @@ -15,6 +15,9 @@ DATA_PATH = pathlib.Path(resource_filename('wordfreq', 'data')) CACHE_SIZE = 100000 def load_range(filename): + """ + Loads a file from the data path + """ with (DATA_PATH / filename).open() as file: return file.read()