File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -107,21 +107,22 @@ def __repr__(self):
107107 result += ", '%s'" % self .__value
108108 else :
109109 result += ", %s" % str (self .__value )
110- use_timeout = False
111110 if self .__completion :
112- use_timeout = True
113111 result += ', completion=True'
112+ result += ', timeout=' + str (self .__timeout )
114113 if isinstance (self .__readback , str ):
115- use_timeout = True
116114 result += ", readback='%s'" % self .__readback
115+ result += ", tolerance='%f'" % self .__tolerance
116+ if not self .__completion and self .__timeout != 0.0 :
117+ result += ', timeout=' + str (self .__timeout )
117118 elif self .__readback :
118- use_timeout = True
119119 result += ", readback=%s" % str (self .__readback )
120- if use_timeout and self .__timeout != 0.0 :
121- result += ', timeout=' + str (self .__timeout )
120+ result += ", tolerance='%f'" % self .__tolerance
121+ if not self .__completion and self .__timeout != 0.0 :
122+ result += ', timeout=' + str (self .__timeout )
122123 if self .__errHandler :
123124 result += ", errhandler='%s'" % self .__errHandler
124125 result += ')'
125126 return result
126127
127-
128+
Original file line number Diff line number Diff line change 11
2- __version__ = '1.4.0 '
2+ __version__ = '1.4.1 '
33
44version_history = """
5+ 1.4.1 - Better Set(..) representation
561.4.0 - Jython uses Java HTTP API, CPython uses urllib2
671.3.12 - Add Parallel.append(..) method
781.3.11 - Fix list-of-lists check
You can’t perform that action at this time.
0 commit comments