From: W. Trevor King Date: Wed, 20 Oct 2010 07:57:15 +0000 (-0400) Subject: Allow Job.__str__() to work when .id == None. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d50e495321b64878517bed29cbf76299ab96a4f7;p=sawsim.git Allow Job.__str__() to work when .id == None. --- diff --git a/pysawsim/manager/__init__.py b/pysawsim/manager/__init__.py index 8e3eb65..c18cc24 100644 --- a/pysawsim/manager/__init__.py +++ b/pysawsim/manager/__init__.py @@ -101,7 +101,7 @@ class Job (object): self.data = None def __str__(self): - return '<%s %d>' % (self.__class__.__name__, self.id) + return '<%s %s>' % (self.__class__.__name__, self.id) def __repr__(self): return self.__str__()