Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • Z zodbtools
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 4
    • Merge requests 4
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • nexedinexedi
  • zodbtools
  • Repository
You need to sign in or sign up before continuing.
  • zodbtools
  • zodbtools
  • test
  • test_commit.py
Find file BlameHistoryPermalink
  • Kirill Smelkov's avatar
    *: Pass bytes - not unicode - literals to sha1() · a7eee284
    Kirill Smelkov authored May 24, 2019
    	data = 'data1'
    
    	    def sha1(data):
    	        m = hashlib.sha1()
    	>       m.update(data)
    	E       TypeError: Unicode-objects must be encoded before hashing
    
    	zodbtools/util.py:38: TypeError
    
    Based on patch by Jérome Perrin.
    a7eee284
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7