~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to services/svnlogservice

  • Committer: Matt Giuca
  • Date: 2009-04-25 15:04:46 UTC
  • Revision ID: matt.giuca@gmail.com-20090425150446-f6z2k8ogs8kgyh1y
Tags: 0.1.9.12
ivle.chat, ivle.database, ivle.makeuser: Replaced use of md5 library with
    hashlib to avoid Python 2.6 producing DeprecationWarnings.
    Also use hexdigest() instead of digest().encode('hex').

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
        code = e[1][0][1]
52
52
        # See subversion/include/svn_error_codes.h.
53
53
        # 155007: WC_NOT_DIRECTORY.
54
 
        # 160006: FS_NO_SUCH_REVISION
55
54
        # 160013: FS_NOT_FOUND
56
55
        # 200005: UNVERSIONED_RESOURCE
57
 
        if code in (155007, 160006, 160013, 200005):
 
56
        if code in (155007, 160013, 200005):
58
57
            error = 'notfound'
59
58
        else:
60
 
            error = '%s (code %d)' % (error, code)
 
59
            error = '%s (code %d)' % (error, code) 
61
60
    except IndexError:
62
61
        pass
63
62