diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2015-07-05 13:19:43 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2015-07-05 17:29:25 -0600 |
commit | 7fa8ab6ac29c1dccf34dae5c53211ace67620ed7 (patch) | |
tree | 29c6f65a680e9bb21bda2624ba1e38ace5d48525 /numpy/core/defchararray.py | |
parent | 8b3e9ae5262c1da1118370cd6e83db9b2166952e (diff) | |
download | numpy-7fa8ab6ac29c1dccf34dae5c53211ace67620ed7.tar.gz |
MAINT: Fix some pyflakes warnings in numpy/core/*.py
These fixes are not agressive as some of the code is complicated
and it is better to be careful.
The files numeric.py and numerictypes.py are not easily analysed
and the latter is self modifying. Pyflakes generates a number of
invalid warnings for those files.
Diffstat (limited to 'numpy/core/defchararray.py')
-rw-r--r-- | numpy/core/defchararray.py | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/numpy/core/defchararray.py b/numpy/core/defchararray.py index e273007c9..e18f912d6 100644 --- a/numpy/core/defchararray.py +++ b/numpy/core/defchararray.py @@ -25,17 +25,18 @@ from numpy.core.multiarray import _vec_string from numpy.compat import asbytes, long import numpy -__all__ = ['chararray', - 'equal', 'not_equal', 'greater_equal', 'less_equal', 'greater', 'less', - 'str_len', 'add', 'multiply', 'mod', 'capitalize', 'center', 'count', - 'decode', 'encode', 'endswith', 'expandtabs', 'find', 'format', - 'index', 'isalnum', 'isalpha', 'isdigit', 'islower', 'isspace', - 'istitle', 'isupper', 'join', 'ljust', 'lower', 'lstrip', - 'partition', 'replace', 'rfind', 'rindex', 'rjust', 'rpartition', - 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', - 'swapcase', 'title', 'translate', 'upper', 'zfill', - 'isnumeric', 'isdecimal', - 'array', 'asarray'] +__all__ = [ + 'chararray', 'equal', 'not_equal', 'greater_equal', 'less_equal', + 'greater', 'less', 'str_len', 'add', 'multiply', 'mod', 'capitalize', + 'center', 'count', 'decode', 'encode', 'endswith', 'expandtabs', + 'find', 'index', 'isalnum', 'isalpha', 'isdigit', 'islower', 'isspace', + 'istitle', 'isupper', 'join', 'ljust', 'lower', 'lstrip', 'partition', + 'replace', 'rfind', 'rindex', 'rjust', 'rpartition', 'rsplit', + 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', + 'title', 'translate', 'upper', 'zfill', 'isnumeric', 'isdecimal', + 'array', 'asarray' + ] + _globalvar = 0 if sys.version_info[0] >= 3: |