summarylogtreecommitdiffstats
path: root/vinetto-hashlib.patch
blob: 2795047a86cc3d3ea17f5517d0640c37a1a5143a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
--- vinetto
+++ vinetto
***************
*** 32,38 ****
  import sys
  import os
  import StringIO
! import md5
  import vinreport
  
  from optparse import OptionParser
--- 32,38 ----
  import sys
  import os
  import StringIO
! import hashlib
  import vinreport
  
  from optparse import OptionParser
***************
*** 149,155 ****
      outputdir += "/"
      
      try:
!         import Image
          PIL = "imported"
      except ImportError, e:
          print >> sys.stderr, ""
--- 149,155 ----
      outputdir += "/"
      
      try:
!         from PIL import Image
          PIL = "imported"
      except ImportError, e:
          print >> sys.stderr, ""
***************
*** 164,170 ****
      if htmlrep == True:
          report = vinreport.HtRep(tDBfname, outputdir, getencodings(), __version__ + " (r" + \
                                   __revision__[11:-2] +")")
!         md5tDB = md5.new(thumbsDB).hexdigest()
          report.SetFileSection(longueur, md5tDB)
  
  # -----------------------------------------------------------------------------
--- 164,170 ----
      if htmlrep == True:
          report = vinreport.HtRep(tDBfname, outputdir, getencodings(), __version__ + " (r" + \
                                   __revision__[11:-2] +")")
!         md5tDB = hashlib.md5(thumbsDB).hexdigest()
          report.SetFileSection(longueur, md5tDB)
  
  # -----------------------------------------------------------------------------