File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -454,6 +454,7 @@ def validate_native(cls, value):
454454 return (Integer .validate_native (cls , value )
455455 and (value is None or value > 0 ))
456456
457+
457458@memoize
458459def TBoundedInteger (num_bits , type_name ):
459460 _min_b = - (0x8 << (num_bits - 4 )) # 0x8 is 4 bits.
Original file line number Diff line number Diff line change @@ -110,10 +110,10 @@ def unicode_from_string(cls, value):
110110 retval = value
111111 if isinstance (value , str ):
112112 if cls .Attributes .encoding is None :
113- retval = unicode (value , errors = cls .Attributes .unicode_errors )
113+ retval = unicode (value , errors = cls .Attributes .unicode_errors )
114114 else :
115115 retval = unicode (value , cls .Attributes .encoding ,
116- errors = cls .Attributes .unicode_errors )
116+ errors = cls .Attributes .unicode_errors )
117117 return retval
118118
119119
You can’t perform that action at this time.
0 commit comments