Skip to content

Commit

Permalink
Remove sajax.get_js_path()
Browse files Browse the repository at this point in the history
  • Loading branch information
burnhamrobertp committed Dec 12, 2014
1 parent e591299 commit 786095f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from sajax import get_js_path, get_js_string, Response
from sajax import get_js_string, Response
4 changes: 2 additions & 2 deletions sajax/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from sajax import get_js_path, get_js_string
from response import Response
from sajax import get_js_string
from response import Response
7 changes: 1 addition & 6 deletions sajax/sajax.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 786095f

Please sign in to comment.