~ubuntu-branches/ubuntu/precise/dulwich/precise-updates

« 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.3 upstream)
  • mto: (1.2.5 upstream) (4.1.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20090520190400-497zerzt6k796ssk
ImportĀ upstreamĀ versionĀ 0.3.2

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)