about summary refs log tree commit diff stats
path: root/doc/pydoc/test.html
blob: 5d239e76abbb26de37a711cd4f25aa351363bb28 (plain) (blame)
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: package test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>test</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/work/ranger/test/__init__.py">/home/hut/work/ranger/test/__init__.py</a></font></td></tr></table>
    <p></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Package Contents</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="test.tc_colorscheme.html">tc_colorscheme</a><br>
<a href="test.tc_directory.html">tc_directory</a><br>
</td><td width="25%" valign=top><a href="test.tc_displayable.html">tc_displayable</a><br>
<a href="test.tc_history.html">tc_history</a><br>
</td><td width="25%" valign=top><a href="test.tc_ui.html">tc_ui</a><br>
<a href="test.test.html">test</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>__all__</strong> = ['tc_history', 'tc_directory', 'tc_ui', 'tc_history', 'tc_ui', 'tc_displayable', 'tc_colorscheme', 'tc_directory', 'tc_colorscheme', 'tc_displayable']</td></tr></table>
</body></html>
lass="bp">self.files = files self._clear_marked_items() for item in self.files: if item.path in marked_paths: self.mark_item(item, True) else: self.mark_item(item, False) self.sort() if len(self.files) > 0: if self.pointed_obj is not None: self.sync_index() else: self.move(to=0) else: self.filenames = None self.files = None self.cycle_list = None self.content_loaded = True self.determine_infostring() self.correct_pointer() finally: self.loading = False class benchmark_load(object): def __init__(self): self.loader = Loader() fm = OpenStruct(loader=self.loader) SettingsAware.settings = Fake() FileManagerAware.fm = fm self.dir = Directory(TESTDIR) def bm_run(self, n): for _ in range(n): self.dir.load_content(schedule=True) while self.loader.has_work(): self.loader.work() @skip class benchmark_raw_load(object): def __init__(self): SettingsAware.settings = Fake() self.dir = Directory(TESTDIR) def bm_run(self, n): generator = self.dir.load_bit_by_bit() for _ in range(n): raw_load_content(self.dir) def bm_loader(n): """Do some random calculation""" tloader = benchmark_load(N) traw = benchmark_raw_load(N) class benchmark_load_varieties(object): def bm_ls(self, n): for _ in range(n): Popen(["ls", '-l', TESTDIR], stdout=open(os.devnull, 'w')).wait() def bm_os_listdir_stat(self, n): for _ in range(n): for f in os.listdir(TESTDIR): path = os.path.join(TESTDIR, f) os.stat(path) def bm_os_listdir(self, n): for _ in range(n): for f in os.listdir(TESTDIR): path = os.path.join(TESTDIR, f) def bm_os_listdir_stat_listdir(self, n): for _ in range(n): for f in os.listdir(TESTDIR): path = os.path.join(TESTDIR, f) os.stat(path) if os.path.isdir(path): os.listdir(path)