Skip to content

Commit

Permalink
random style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Jul 12, 2013
1 parent 58ce0da commit 58cae9f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions topaz/objects/timeobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class W_TimeObject(W_Object):

def __init__(self, space, klass):
W_Object.__init__(self, space, klass)
self.epoch_seconds = 0
self._set_epoch_seconds(0.0)

@classdef.singleton_method("allocate")
def method_allocate(self, space):
Expand All @@ -26,13 +26,13 @@ def method_at(self, space, w_time):
w_time.is_kind_of(space, space.getclassfor(W_TimeObject))):
raise space.error(space.w_TypeError)
timestamp = Coerce.float(space, w_time)
time = space.send(self, "new")
time._set_epoch_seconds(timestamp)
return time
w_time = space.send(self, "new")
w_time._set_epoch_seconds(timestamp)
return w_time

@classdef.method("initialize")
def method_initialize(self, space):
self.epoch_seconds = time.time()
self._set_epoch_seconds(time.time())

@classdef.method("to_f")
def method_to_f(self, space):
Expand Down

0 comments on commit 58cae9f

Please sign in to comment.