facebook / chisel

Chisel is a collection of LLDB commands to assist debugging iOS apps.
MIT License
9.13k stars 803 forks source link

Replace xrange with range #279

Closed kastiglione closed 4 years ago

kastiglione commented 5 years ago

xrange is not in Python 3

Resolves #276

alkhimey commented 5 years ago

In the latest master with XCode 11.1 I got the following error. Probably related to this pull request.

lldb) border 0x00007ff3a2b0a200
Traceback (most recent call last):
  File "/Users/artium/.lldbdir/chisel/fblldb.py", line 83, in runCommand
    command.run(args, options)
  File "/Users/artium/.lldbdir/chisel/commands/FBDisplayCommands.py", line 78, in run
    for view, level in viewHelpers.subviewsOfView(obj):
  File "/Users/artium/.lldbdir/chisel/fblldbviewhelpers.py", line 75, in subviewsOfView
    for i in xrange(subviewsCount):
NameError: name 'xrange' is not defined