Fix xrange is undefined error

- xrange is undefined error in  Tor-v3 Patch Files
This commit is contained in:
canewsin 2021-11-28 22:06:50 +05:30
parent a1eb6eede5
commit 7acd8df906
3 changed files with 4 additions and 4 deletions

View file

@ -5,11 +5,11 @@ on: [push, pull_request]
jobs: jobs:
test: test:
runs-on: ubuntu-16.04 runs-on: ubuntu-18.04
strategy: strategy:
max-parallel: 16 max-parallel: 16
matrix: matrix:
python-version: [3.5, 3.6, 3.7, 3.8, 3.9] python-version: [3.6, 3.7, 3.8, 3.9]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

View file

@ -63,7 +63,7 @@ if PY3:
int2byte = operator.methodcaller("to_bytes", 1, "big") int2byte = operator.methodcaller("to_bytes", 1, "big")
else: else:
int2byte = chr int2byte = chr
range = xrange range = list(range(1,10000000))
def indexbytes(buf, i): def indexbytes(buf, i):
return ord(buf[i]) return ord(buf[i])

View file

@ -1,6 +1,6 @@
[pytest] [pytest]
python_files = Test*.py python_files = Test*.py
addopts = -rsxX -v --durations=6 --no-print-logs --capture=fd addopts = -rsxX -v --durations=6 --capture=fd
markers = markers =
slow: mark a tests as slow. slow: mark a tests as slow.
webtest: mark a test as a webtest. webtest: mark a test as a webtest.