call site 8 for path.local.visit
misc/testing/test_initpkg.py - line 86
85
86
87
   def test_shahexdigest():
->     hex = py.__package__.shahexdigest()
       assert len(hex) == 40
initpkg.py - line 124
116
117
118
119
120
121
122
123
124
125
126
127
   def shahexdigest(self, cache=[]):
       """ return sha hexdigest for files contained in package. """
       if cache:
           return cache[0]
       from sha import sha
       sum = sha()
       # XXX the checksum depends on the order in which visit() enumerates
       # the files, and it doesn't depend on the file names and paths
->     for x in self._iterfiles():
           sum.update(x.read())
       cache.append(sum.hexdigest())
       return cache[0]
initpkg.py - line 113
109
110
111
112
113
114
   def _iterfiles(self):
       from py.__.path.common import checker
       base = self.getpath()
       for x in base.visit(checker(file=1, notext='.pyc'),
->                         rec=checker(dotfile=0)):
           yield x