From 786095f817caa88c1f8c08eedda03b436e1a47db Mon Sep 17 00:00:00 2001 From: Robert Burnham Date: Thu, 11 Dec 2014 21:24:39 -0600 Subject: [PATCH] Remove sajax.get_js_path() --- __init__.py | 2 +- sajax/__init__.py | 4 ++-- sajax/sajax.py | 7 +------ 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/__init__.py b/__init__.py index 328c1f3..4eb9fef 100644 --- a/__init__.py +++ b/__init__.py @@ -1 +1 @@ -from sajax import get_js_path, get_js_string, Response \ No newline at end of file +from sajax import get_js_string, Response diff --git a/sajax/__init__.py b/sajax/__init__.py index 962488b..757ca97 100644 --- a/sajax/__init__.py +++ b/sajax/__init__.py @@ -1,2 +1,2 @@ -from sajax import get_js_path, get_js_string -from response import Response \ No newline at end of file +from sajax import get_js_string +from response import Response diff --git a/sajax/sajax.py b/sajax/sajax.py index 425c2bc..e88b14f 100644 --- a/sajax/sajax.py +++ b/sajax/sajax.py @@ -1,11 +1,6 @@ import pkg_resources -def get_js_path(): +def get_js_string(): """Return the path to sajax.js""" return pkg_resources.resource_string(__name__, 'static/js/sajax.js') - - -def get_js_string(): - """Return the string contents of sajax.js""" - pass \ No newline at end of file