~cjwatson/storm/py3-mocker-inspect

« back to all changes in this revision

Viewing changes to storm/properties.py

  • Committer: Colin Watson
  • Author(s): Thiago Bellini
  • Date: 2019-06-07 12:20:07 UTC
  • mfrom: (503.1.1 no-sys-maxint)
  • Revision ID: cjwatson@canonical.com-20190607122007-yf8y3rnhhsdcijuz
Use sys.maxsize rather than sys.maxint. [r=cjwatson]

Show diffs side-by-side

added added

removed removed

Lines of Context:
262
262
                i += 1
263
263
        else:
264
264
            namespace_parts = ("." + namespace).split(".")
265
 
            best_path_info = (0, sys.maxint)
 
265
            best_path_info = (0, sys.maxsize)
266
266
            while i < l and self._properties[i][0].startswith(key):
267
267
                path, prop_ref = self._properties[i]
268
268
                prop = prop_ref()