File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -52,14 +52,17 @@ class BigArray(list):
52
52
List-like class used for storing large amounts of data (disk cached)
53
53
"""
54
54
55
- def __init__ (self ):
55
+ def __init__ (self , items = [] ):
56
56
self .chunks = [[]]
57
57
self .chunk_length = sys .maxint
58
58
self .cache = None
59
59
self .filenames = set ()
60
60
self ._os_remove = os .remove
61
61
self ._size_counter = 0
62
62
63
+ for item in items :
64
+ self .append (item )
65
+
63
66
def append (self , value ):
64
67
self .chunks [- 1 ].append (value )
65
68
@@ -136,15 +139,10 @@ def __setstate__(self, state):
136
139
self .chunks , self .filenames = state
137
140
138
141
def __getslice__ (self , i , j ):
139
- retval = BigArray ()
140
-
141
142
i = max (0 , len (self ) + i if i < 0 else i )
142
143
j = min (len (self ), len (self ) + j if j < 0 else j )
143
144
144
- for _ in xrange (i , j ):
145
- retval .append (self [_ ])
146
-
147
- return retval
145
+ return BigArray (self [_ ] for _ in xrange (i , j ))
148
146
149
147
def __getitem__ (self , y ):
150
148
if y < 0 :
Original file line number Diff line number Diff line change 19
19
from lib .core .enums import OS
20
20
21
21
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22
- VERSION = "1.1.12.12 "
22
+ VERSION = "1.1.12.13 "
23
23
TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
24
24
TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
25
25
VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ c0c9a87e5829c76efc69067081edb8b1 lib/controller/checks.py
26
26
d2cdb9e832e18a81e936ca3348144b16 lib/controller/handler.py
27
27
5fb9aaf874daa47ea2b672a22740e56b lib/controller/__init__.py
28
28
f8a7165253874a9ce0c6e0d089e5fb8c lib/core/agent.py
29
- 8d9d771f7e67582c56a96a8d0ccbe4fc lib/core/bigarray.py
29
+ 9eccf8db8b8e259e30c1eade4ee499b0 lib/core/bigarray.py
30
30
d359917cd034d4d353cfd699bd201693 lib/core/common.py
31
31
54326d3a690f8b26fe5a5da1a589b369 lib/core/convert.py
32
32
90b1b08368ac8a859300e6fa6a8c796e lib/core/data.py
@@ -46,7 +46,7 @@ f872699e948d0692ce11b54781da814c lib/core/log.py
46
46
760d9df2a27ded29109b390ab202e72d lib/core/replication.py
47
47
a2466b62e67f8b31736bac4dac590e51 lib/core/revision.py
48
48
02d4762140a72fd44668d3dab5eabda9 lib/core/session.py
49
- 8b4e97576189f033d919e9642e423d73 lib/core/settings.py
49
+ e4e0634721ad8f7ad97e32519451e5f9 lib/core/settings.py
50
50
35bffbad762eb9e03db9e93b1c991103 lib/core/shell.py
51
51
a59ec28371ae067a6fdd8f810edbee3d lib/core/subprocessng.py
52
52
d93501771b41315f9fb949305b6ed257 lib/core/target.py
You can’t perform that action at this time.
0 commit comments