~ubuntu-branches/ubuntu/saucy/dulwich/saucy-proposed

« back to all changes in this revision

Viewing changes to dulwich/objects.py

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2011-12-18 21:35:03 UTC
  • mfrom: (1.2.18)
  • Revision ID: package-import@ubuntu.com-20111218213503-a1cmlg9kr1smxgg6
Tags: 0.8.2-1
* Fix Vcs URL.
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
294
294
    def _is_legacy_object(cls, magic):
295
295
        b0, b1 = map(ord, magic)
296
296
        word = (b0 << 8) + b1
297
 
        return b0 == 0x78 and (word % 31) == 0
 
297
        return (b0 & 0x8F) == 0x08 and (word % 31) == 0
298
298
 
299
299
    @classmethod
300
300
    def _parse_file_header(cls, f):