py3k

Python 3 compatibility tools.

Copied from numpy/compat/py3k

Please prefer the routines in externals/six.py when possible

BSD license

FileNotFoundError
asbytes_nested(x)
asunicode(s)
asunicode_nested(x)
getexception()
ints2bytes(seq)
isfileobj(f)
open_latin1(filename[, mode])

FileNotFoundError

class nibabel.py3k.FileNotFoundError

Bases: exceptions.IOError

__init__()

x.__init__(...) initializes x; see help(type(x)) for signature

asbytes_nested

nibabel.py3k.asbytes_nested(x)

asunicode

nibabel.py3k.asunicode(s)

asunicode_nested

nibabel.py3k.asunicode_nested(x)

getexception

nibabel.py3k.getexception()

ints2bytes

nibabel.py3k.ints2bytes(seq)

isfileobj

nibabel.py3k.isfileobj(f)

open_latin1

nibabel.py3k.open_latin1(filename, mode='r')