~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/knit.py

  • Committer: Benjamin Peterson
  • Date: 2009-03-07 20:45:34 UTC
  • mto: (4090.2.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 4094.
  • Revision ID: benjamin@python.org-20090307204534-5sxqxn5di37bquae
compare types with 'is' not ==

Show diffs side-by-side

added added

removed removed

Lines of Context:
966
966
        else:
967
967
            options.append('fulltext')
968
968
            # isinstance is slower and we have no hierarchy.
969
 
            if self._factory.__class__ == KnitPlainFactory:
 
969
            if self._factory.__class__ is KnitPlainFactory:
970
970
                # Use the already joined bytes saving iteration time in
971
971
                # _record_to_data.
972
972
                size, bytes = self._record_to_data(key, digest,