summaryrefslogtreecommitdiff
path: root/numpy/oldnumeric/precision.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/oldnumeric/precision.py')
-rw-r--r--numpy/oldnumeric/precision.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/numpy/oldnumeric/precision.py b/numpy/oldnumeric/precision.py
index 51dd77454..c095ceb19 100644
--- a/numpy/oldnumeric/precision.py
+++ b/numpy/oldnumeric/precision.py
@@ -5,12 +5,12 @@
__all__ = ['Character', 'Complex', 'Float',
'PrecisionError', 'PyObject', 'Int', 'UInt',
- 'UnsignedInteger', 'string', 'typecodes', 'zeros']
+ 'UnsignedInt', 'UnsignedInteger', 'string', 'typecodes', 'zeros']
from functions import zeros
import string # for backwards compatibility
-typecodes = {'Character':'c', 'Integer':'bhil', 'UnsignedInteger':'BHI', 'Float':'fd', 'Complex':'FD'}
+typecodes = {'Character':'c', 'Integer':'bhil', 'UnsignedInteger':'BHIL', 'Float':'fd', 'Complex':'FD'}
def _get_precisions(typecodes):
lst = []
@@ -67,8 +67,7 @@ try:
__all__.extend(['UnsignedInt128', 'UInt128'])
except(PrecisionError):
pass
-UnsignedInteger = 'u'
-UInt = UnsignedInteger
+UInt = UnsignedInt = UnsignedInteger = 'u'
try:
Int0 = _lookup(_code_table, 'Integer', 0)