~ubuntu-branches/ubuntu/karmic/dulwich/karmic

« back to all changes in this revision

Viewing changes to dulwich/_pack.c

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2009-05-20 19:04:00 UTC
  • mfrom: (1.2.5 upstream) (4.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090520190400-qev99je3y0ligs6r
Tags: 0.3.2-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
static int py_is_sha(PyObject *sha)
24
24
{
25
 
    if (!PyString_Check(sha))
 
25
    if (!PyString_CheckExact(sha))
26
26
        return 0;
27
27
 
28
28
    if (PyString_Size(sha) != 20)