Skip to content

Commit

Permalink
remove unused mtime arg/prop
Browse files Browse the repository at this point in the history
  • Loading branch information
pjz committed Jul 30, 2015
1 parent e7c5306 commit 210b0ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion aspen/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def load(website, fspath, mtime):
# An instantiated resource is compiled as far as we can take it.

Class = Simplate if is_spt else StaticResource
resource = Class(website, fspath, raw, media_type, mtime)
resource = Class(website, fspath, raw, media_type)
return resource


Expand Down
3 changes: 1 addition & 2 deletions aspen/resources/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ class Resource(object):
"""This is a base class for both static and dynamic resources.
"""

def __init__(self, website, fs, raw, media_type, mtime):
def __init__(self, website, fs, raw, media_type):
self.website = website
self.fs = fs
self.raw = raw
self.media_type = media_type
self.mtime = mtime
4 changes: 1 addition & 3 deletions tests/test_unbound_simplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def get(**_kw):
, fs = ''
, raw = '[---]\n[---] text/plain via stdlib_template\n'
, media_type = ''
, mtime = 0
)
kw.update(_kw)
return Simplate(**kw)
Expand All @@ -31,8 +30,7 @@ def test_unbound_simplate_is_instantiable(harness):
fs = ''
raw = '[---]\n[---] text/plain via stdlib_template\n'
media_type = ''
mtime = 0
actual = Simplate(website, fs, raw, media_type, mtime).__class__
actual = Simplate(website, fs, raw, media_type).__class__
assert actual is Simplate


Expand Down

0 comments on commit 210b0ef

Please sign in to comment.