~jtaylor/ubuntu/precise/python-numpy/multiarch-fix-818867

« back to all changes in this revision

Viewing changes to numpy/f2py/lib/parser/splitline.py

  • Committer: Bazaar Package Importer
  • Author(s): Ondrej Certik, Riku Voipio, Tiziano Zito, Carlos Galisteo, Ondrej Certik
  • Date: 2008-07-08 15:08:16 UTC
  • mfrom: (0.1.21 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080708150816-ekf992jcp2k1eua3
Tags: 1:1.1.0-3
[ Riku Voipio ]
* debian/control: atlas is not available on armel, and after a quick look
  neither on alpha. I'd also suggest dropping
  libatlas-sse-dev|libatlas-sse2-dev|libatlas-3dnow-dev alternative combo
  away, these are potentially dangerous on buildd's. Ondrej: dropped.
  (Closes: #489568)

[ Tiziano Zito ]
* patch: build _dotblas.c when ATLAS is not installed, build-conflict with
  atlas, build-depend on blas+lapack only, as it used to be (Closes: #489726)

[ Carlos Galisteo ]
* debian/control
  - Added Homepage field.

[ Ondrej Certik ]
* Checked the package on i386 and amd64, both with and without atlas, all
  tests run and the numpy package is faster if atlas is around. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
209
209
        quotechar = self.quotechar
210
210
        l = []
211
211
        l_append = l.append
212
 
        
 
212
 
213
213
        nofslashes = 0
214
214
        if quotechar is None:
215
215
            # search for string start
323
323
        self.startchar = paren[0]
324
324
        self.endchar = paren[1]
325
325
        self.stopchar = None
326
 
        
 
326
 
327
327
    def get_item(self):
328
328
        fifo_pop = self.fifo_line.pop
329
329
        try:
336
336
        stopchar = self.stopchar
337
337
        l = []
338
338
        l_append = l.append
339
 
        
 
339
 
340
340
        nofslashes = 0
341
341
        if stopchar is None:
342
342
            # search for parenthesis start
377
377
            except IndexError:
378
378
                break
379
379
        return ParenString(''.join(l))
380
 
                
 
380
 
381
381
def test():
382
382
    splitter = LineSplitter('abc\\\' def"12\\"3""56"dfad\'a d\'')
383
383
    l = [item for item in splitter]
394
394
    l,stopchar = splitquote('"abc123&')
395
395
    assert l==['"abc123&'],`l`
396
396
    assert stopchar=='"'
397
 
    
 
397
 
398
398
    splitter = LineSplitter(' &abc"123','"')
399
399
    l = [item for item in splitter]
400
400
    assert l==[' &abc"','123']
402
402
    l,stopchar = splitquote(' &abc"123','"')
403
403
    assert l==[' &abc"','123']
404
404
    assert stopchar is None
405
 
        
 
405
 
406
406
    l = split2('')
407
407
    assert l==('',''),`l`
408
408
    l = split2('12')
424
424
 
425
425
if __name__ == '__main__':
426
426
    test()
427