Skip to content
Permalink
Browse files

random style fixes

  • Loading branch information
alex committed Jul 12, 2013
1 parent 58ce0da commit 58cae9ff52f094cc96de1870d6cf9ec507267bc1
Showing with 5 additions and 5 deletions.
  1. +5 −5 topaz/objects/timeobject.py
@@ -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):
@@ -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):

0 comments on commit 58cae9f

Please sign in to comment.
You can’t perform that action at this time.