Allow Job.__str__() to work when .id == None.
authorW. Trevor King <wking@drexel.edu>
Wed, 20 Oct 2010 07:57:15 +0000 (03:57 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 20 Oct 2010 07:57:15 +0000 (03:57 -0400)
pysawsim/manager/__init__.py

index 8e3eb65d919cc8630d8da5d73e06485e486eff61..c18cc24a106aef380a059902f2a5abfbdad26578 100644 (file)
@@ -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__()