From d50e495321b64878517bed29cbf76299ab96a4f7 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 20 Oct 2010 03:57:15 -0400 Subject: [PATCH] Allow Job.__str__() to work when .id == None. --- pysawsim/manager/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__() -- 2.26.2