/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/weave.py

  • Committer: Martin
  • Date: 2017-04-01 06:30:31 UTC
  • mto: (6621.2.13 py3)
  • mto: This revision was merged to the branch mainline in revision 6624.
  • Revision ID: gzlist@googlemail.com-20170401063031-0sal1ckd5c1d6hzp
Remove or fix use of long type and nearby type issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
750
750
 
751
751
        NOT FOR PUBLIC USE.
752
752
        """
753
 
        if isinstance(name_or_index, (int, long)):
 
753
        # GZ 2017-04-01: This used to check for long as well, but I don't think
 
754
        # there are python implementations with sys.maxsize > sys.maxint
 
755
        if isinstance(name_or_index, int):
754
756
            return name_or_index
755
757
        else:
756
758
            return self._lookup(name_or_index)