Skip to content

Commit

Permalink
Replace xrange with range (#279)
Browse files Browse the repository at this point in the history
Summary:
xrange is not in Python 3

Resolves #276
Pull Request resolved: #279

Reviewed By: jarman

Differential Revision: D20300505

Pulled By: kolinkrewinkel

fbshipit-source-id: 0ba6c4e822bea3f59853663f7aa285fcba46187b
  • Loading branch information
kastiglione authored and kkrewink committed Mar 6, 2020
1 parent 7782bdd commit d5f155d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commands/FBXCTestCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def children_list(self):
:return: XCUIElement children list
:rtype: list[lldb.SBValue]
"""
return [self.children.GetChildAtIndex(i) for i in xrange(0, self.children_count)]
return [self.children.GetChildAtIndex(i) for i in range(self.children_count)]

@property
def enabled(self):
Expand Down
2 changes: 1 addition & 1 deletion fblldbviewhelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def subviewsOfView(view):
(view, level) = views.pop(0)
subviews = fb.evaluateExpression('(id)[%s subviews]' % view)
subviewsCount = int(fb.evaluateExpression('(int)[(id)%s count]' % subviews))
for i in xrange(subviewsCount):
for i in range(subviewsCount):
subview = fb.evaluateExpression('(id)[%s objectAtIndex:%i]' % (subviews, i))
views.append((subview, level+1))
yield (subview, level+1)
Expand Down

0 comments on commit d5f155d

Please sign in to comment.