Skip to content

Commit

Permalink
Fixed python 3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
shanx committed Sep 14, 2016
1 parent 2a665aa commit 08d3388
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions benchmarks/test_bench.py
Expand Up @@ -11,6 +11,13 @@

from .models import Group, Permission, User


# Python 3 compatibility
try:
xrange
except NameError:
xrange = range

DREST_VERSION = pkg_resources.require('dynamic-rest')[0].version
DRF_VERSION = pkg_resources.require('djangorestframework')[0].version
AVERAGE_TYPE = 'median'
Expand Down

0 comments on commit 08d3388

Please sign in to comment.