Skip to content

Commit e341732

Browse files
authored
EnginePort: use %s format instead of %d in __repr__() (#500)
Use more robust formatting in case the streams are not initialized yet. Fixes #499.
1 parent 293ad48 commit e341732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ClusterShell/Worker/EngineClient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ def __repr__(self):
499499
fd_out = self.streams['out'].fd
500500
except KeyError:
501501
fd_out = None
502-
return "<%s at 0x%s (streams=(%d, %d))>" % (self.__class__.__name__, \
502+
return "<%s at 0x%s (streams=(%s, %s))>" % (self.__class__.__name__,
503503
id(self), fd_in, fd_out)
504504

505505
def _start(self):

0 commit comments

Comments
 (0)