tensorflow_privacy/privacy/optimizers
cclauss d9780c043e
from six.moves import xrange
__xrange()__ was removed in Python 3 in favor of a reworked version of __range()__.

[flake8](http://flake8.pycqa.org) testing of https://github.com/tensorflow/privacy on Python 3.7.1

$ __flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics__
```
./privacy/optimizers/gaussian_query_test.py:65:16: F821 undefined name 'xrange'
      for _ in xrange(1000):
               ^
./research/pate_2018/ICLR2018/rdp_bucketized.py:79:12: F821 undefined name 'xrange'
  for i in xrange(n):
           ^
./research/pate_2018/ICLR2018/rdp_bucketized.py:106:12: F821 undefined name 'xrange'
  for i in xrange(n):
           ^
./research/pate_2018/ICLR2018/rdp_bucketized.py:139:12: F821 undefined name 'xrange'
  for i in xrange(n):
           ^
4     F821 undefined name 'xrange'
4
```
__E901,E999,F821,F822,F823__ are the "_showstopper_" [flake8](http://flake8.pycqa.org) issues that can halt the runtime with a SyntaxError, NameError, etc. These 5 are different from most other flake8 issues which are merely "style violations" -- useful for readability but they do not effect runtime safety.
* F821: undefined name `name`
* F822: undefined name `name` in `__all__`
* F823: local variable name referenced before assignment
* E901: SyntaxError or IndentationError
* E999: SyntaxError -- failed to compile a file into an Abstract Syntax Tree
2019-03-08 10:35:01 +01:00
..
__init__.py Project import generated by Copybara. 2018-12-18 15:44:04 -08:00
dp_optimizer.py missing reduce_mean 2019-02-26 22:56:29 -08:00
dp_optimizer_eager_test.py Tests for Eager mode. 2019-03-01 14:48:29 -08:00
dp_optimizer_test.py Tests for Eager mode. 2019-03-01 14:48:29 -08:00
dp_query.py General cleanup. 2019-01-23 14:41:44 -08:00
gaussian_query.py Fix copybara to limit some transformations to the beginning of the line. 2019-02-08 16:55:57 -08:00
gaussian_query_test.py from six.moves import xrange 2019-03-08 10:35:01 +01:00
nested_query.py Fix copybara to limit some transformations to the beginning of the line. 2019-02-08 16:55:57 -08:00
nested_query_test.py Fix copybara to limit some transformations to the beginning of the line. 2019-02-08 16:55:57 -08:00
no_privacy_query.py Fix copybara to limit some transformations to the beginning of the line. 2019-02-08 16:55:57 -08:00
no_privacy_query_test.py Fix copybara to limit some transformations to the beginning of the line. 2019-02-08 16:55:57 -08:00
test_utils.py General cleanup. 2019-01-23 14:41:44 -08:00