Show More
@@ -1,6 +1,6 b'' | |||||
1 | # -*- coding: iso-8859-1 -*- |
|
1 | # -*- coding: iso-8859-1 -*- | |
2 |
|
2 | |||
3 | import curses |
|
3 | import curses, textwrap | |
4 |
|
4 | |||
5 | import astyle, ipipe |
|
5 | import astyle, ipipe | |
6 |
|
6 | |||
@@ -164,13 +164,13 b' class _BrowserHelp(object):' | |||||
164 |
|
164 | |||
165 | for (i, command) in enumerate(_ibrowse_help.strip().split("\n\n")): |
|
165 | for (i, command) in enumerate(_ibrowse_help.strip().split("\n\n")): | |
166 | if i: |
|
166 | if i: | |
167 | yield Fields(fields, key="", description="") |
|
167 | yield ipipe.Fields(fields, key="", description="") | |
168 |
|
168 | |||
169 | (name, description) = command.split("\n", 1) |
|
169 | (name, description) = command.split("\n", 1) | |
170 | keys = allkeys.get(name, []) |
|
170 | keys = allkeys.get(name, []) | |
171 | lines = textwrap.wrap(description, 60) |
|
171 | lines = textwrap.wrap(description, 60) | |
172 |
|
172 | |||
173 | yield Fields(fields, description=astyle.Text((self.style_header, name))) |
|
173 | yield ipipe.Fields(fields, description=astyle.Text((self.style_header, name))) | |
174 | for i in xrange(max(len(keys), len(lines))): |
|
174 | for i in xrange(max(len(keys), len(lines))): | |
175 | try: |
|
175 | try: | |
176 | key = self.browser.keylabel(keys[i]) |
|
176 | key = self.browser.keylabel(keys[i]) | |
@@ -180,7 +180,7 b' class _BrowserHelp(object):' | |||||
180 | line = lines[i] |
|
180 | line = lines[i] | |
181 | except IndexError: |
|
181 | except IndexError: | |
182 | line = "" |
|
182 | line = "" | |
183 | yield Fields(fields, key=key, description=line) |
|
183 | yield ipipe.Fields(fields, key=key, description=line) | |
184 |
|
184 | |||
185 |
|
185 | |||
186 | class _BrowserLevel(object): |
|
186 | class _BrowserLevel(object): |
@@ -114,7 +114,7 b' three extensions points (all of them optional):' | |||||
114 | """ |
|
114 | """ | |
115 |
|
115 | |||
116 | import sys, os, os.path, stat, glob, new, csv, datetime, types |
|
116 | import sys, os, os.path, stat, glob, new, csv, datetime, types | |
117 |
import |
|
117 | import itertools, mimetypes | |
118 |
|
118 | |||
119 | try: # Python 2.3 compatibility |
|
119 | try: # Python 2.3 compatibility | |
120 | import collections |
|
120 | import collections |
General Comments 0
You need to be logged in to leave comments.
Login now