call site 0 for execnet.Channel.__del__
path/svn/testing/test_auth.py - line 240
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
   def test_log(self):
       u = svnurl_no_svn('http://foo.bar/svn/foo', auth=self.auth)
       u.popen_output = py.std.StringIO.StringIO('''\
   <?xml version="1.0"?>
   <log>
   <logentry revision="51381">
   <author>guido</author>
   <date>2008-02-11T12:12:18.476481Z</date>
   <msg>Creating branch to work on auth support for py.path.svn*.
   </msg>
   </logentry>
   </log>
   ''')
       u.check = lambda *args, **kwargs: True
->     ret = u.log(10, 20, verbose=True)
       assert '--username="foo" --password="bar"' in u.commands[0]
       assert len(ret) == 1
       assert int(ret[0].rev) == 51381
       assert ret[0].author == 'guido'
path/svn/urlcommand.py - line 269
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
   def log(self, rev_start=None, rev_end=1, verbose=False):
       """ return a list of LogEntry instances for this path.
   rev_start is the starting revision (defaulting to the first one).
   rev_end is the last revision (defaulting to HEAD).
   if verbose is True, then the LogEntry instances also know which files changed.
   """
       assert self.check() #make it simpler for the pipe
       rev_start = rev_start is None and _Head or rev_start
       rev_end = rev_end is None and _Head or rev_end
   
       if rev_start is _Head and rev_end == 1:
           rev_opt = ""
       else:
           rev_opt = "-r %s:%s" % (rev_start, rev_end)
       verbose_opt = verbose and "-v" or ""
       xmlpipe =  self._svnpopenauth('svn log --xml %s %s "%s"' %
                                     (rev_opt, verbose_opt, self.strpath))
->     from xml.dom import minidom
       tree = minidom.parse(xmlpipe)
       result = []
       for logentry in filter(None, tree.firstChild.childNodes):
           if logentry.nodeType == logentry.ELEMENT_NODE:
               result.append(LogEntry(logentry))
       return result
path/common.py - line 460
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
   def custom_import_hook(name, glob=None, loc=None, fromlist=None):
       __tracebackhide__ = False 
       __file__ = glob and glob.get('__file__')
       if isinstance(__file__, PathStr):
           # try to perform a relative import
           # for cooperation with py.magic.autopath, first look in the pkgdir
           modules = None
           if hasattr(__file__.__path__, 'pkgdir'):
               modules = relativeimport(__file__.__path__.pkgdir, name)
           if not modules:
               modules = relativeimport(__file__.__path__, name)
           if modules:
               if fromlist:
                   submodule = modules[-1]  # innermost submodule
                   # try to import submodules named in the 'fromlist' if the
                   # 'submodule' is a package
                   p = submodule.__file__.__path__
                   if p.check(basename='__init__.py'):
                       for name in fromlist:
                           relativeimport(p, name, parent=submodule)
                           # failures are fine
                   return submodule
               else:
                   return modules[0]   # outermost package
       # fall-back
       __tracebackhide__ = True 
->     return old_import_hook(name, glob, loc, fromlist)