1
Hardcode sys.maxint value to the one returned by 32-bit platforms.
2
https://launchpad.net/bugs/313952
4
Index: boa-constructor-0.6.1/Companions/SizerCompanions.py
5
===================================================================
6
--- boa-constructor-0.6.1.orig/Companions/SizerCompanions.py 2009-04-11 16:52:51.000000000 +0200
7
+++ boa-constructor-0.6.1/Companions/SizerCompanions.py 2009-04-11 16:54:05.000000000 +0200
9
class PositiveIntPropEdit(IntPropEdit):
10
def inspectorEdit(self):
11
IntPropEdit.inspectorEdit(self)
12
- self.editorCtrl.editorCtrl.SetRange(0, sys.maxint)
13
+ self.editorCtrl.editorCtrl.SetRange(0, 2L**31-1)
15
class RowColDTC(HelperDTC):
17
Index: boa-constructor-0.6.1/ExternalLib/pyparsing.py
18
===================================================================
19
--- boa-constructor-0.6.1.orig/ExternalLib/pyparsing.py 2009-04-11 16:52:52.000000000 +0200
20
+++ boa-constructor-0.6.1/ExternalLib/pyparsing.py 2009-04-11 16:55:04.000000000 +0200
25
- self.maxLen = sys.maxint
26
+ self.maxLen = 2L**31-1
34
- self.maxLen = sys.maxint
35
+ self.maxLen = 2L**31-1
43
- self.maxLen = sys.maxint
44
+ self.maxLen = 2L**31-1
48
Index: boa-constructor-0.6.1/ExternalLib/tarfile.py
49
===================================================================
50
--- boa-constructor-0.6.1.orig/ExternalLib/tarfile.py 2009-04-11 16:52:51.000000000 +0200
51
+++ boa-constructor-0.6.1/ExternalLib/tarfile.py 2009-04-11 16:54:29.000000000 +0200
59
nl = self.linebuffer.find("\n")
61
Index: boa-constructor-0.6.1/PropEdit/InspectorEditorControls.py
62
===================================================================
63
--- boa-constructor-0.6.1.orig/PropEdit/InspectorEditorControls.py 2009-04-11 16:52:52.000000000 +0200
64
+++ boa-constructor-0.6.1/PropEdit/InspectorEditorControls.py 2009-04-11 16:55:44.000000000 +0200
66
self.editorCtrl = wx.SpinCtrl(parent, self.wID, value,
67
(-2, idx*Preferences.oiLineHeight -2),
68
(sizeX, Preferences.oiLineHeight+3), style=wx.SP_VERTICAL,
69
- max=sys.maxint, min=-sys.maxint)
70
+ max=2L**31-1, min=-(2L**31-1))
71
parent.Bind(wx.EVT_TEXT_ENTER, self.OnSelect, id=self.wID)
72
parent.Bind(wx.EVT_SPINCTRL, self.OnSelect, id=self.wID)
73
InspectorEditorControl.createControl(self)