Home
last modified time | relevance | path

Searched +refs:doctest +refs:prompt +refs:re (Results 1 – 25 of 246) sorted by relevance

12345678910

/dports/devel/rlwrap/rlwrap-0.45.2/filters/
H A Dftp_filter.py36 import re
48 fields = re.split(r'\s+', dotdotline)
65 m = re.search(pattern, result)
70 def prompt_handler(prompt): argument
71 if prompt == ftp_prompt:
75 return prompt
100 nwords = len(re.split('\s+', line))
108 command = re.search('\s*(\S+)', line).group(1)
109 prefix_match = re.search('((.*)/)?([^/]*)', prefix)
129 import doctest
[all …]
H A Drlwrapfilter.py46 import re
126 if re.search(stoptext, slice, re.MULTILINE):
200 prompt = None
463 … (echo, nl, message) = re.match(r'^([^\n\r]*)(\r?\n)?(.*)?', message, re.DOTALL).groups()
477 def cloak_and_dagger(self, question, prompt, timeout, argument
486 response = read_until(CMD_OUT, prompt, timeout,
490 response = re.sub('{0}$'.format(prompt), '', response) # chop off prompt;
496 def vacuum_stale_message(self, prompt, timeout): argument
508 response = read_until(CMD_OUT, prompt, timeout)
649 import doctest
[all …]
/dports/devel/ipython/ipython-7.29.0/IPython/testing/
H A Dipunittest.py38 import re
40 from doctest import DocTestFinder, DocTestRunner, TestResults
62 self.rps1 = re.compile(r'In\ \[\d+\]: ')
63 self.rps2 = re.compile(r'\ \ \ \.\.\.+: ')
64 self.rout = re.compile(r'Out\[\d+\]: \s*?\n?')
67 self.rpyps1 = re.compile (r'(\s*%s)(.*)$' % self.pyps1)
68 self.rpyps2 = re.compile (r'(\s*%s)(.*)$' % self.pyps2)
91 prompt, text = mps1.groups()
92 newline(prompt+ip.prefilter(text, False))
97 prompt, text = mps2.groups()
[all …]
/dports/devel/ipython5/ipython-5.10.0/IPython/testing/
H A Dipunittest.py39 import re
41 from doctest import DocTestFinder, DocTestRunner, TestResults
62 self.rps1 = re.compile(r'In\ \[\d+\]: ')
63 self.rps2 = re.compile(r'\ \ \ \.\.\.+: ')
64 self.rout = re.compile(r'Out\[\d+\]: \s*?\n?')
67 self.rpyps1 = re.compile ('(\s*%s)(.*)$' % self.pyps1)
68 self.rpyps2 = re.compile ('(\s*%s)(.*)$' % self.pyps2)
91 prompt, text = mps1.groups()
92 newline(prompt+ip.prefilter(text, False))
97 prompt, text = mps2.groups()
[all …]
/dports/graphics/py-traitsui/traitsui-7.1.1/docs/
H A Dapi.css69 .py-prompt { background: transparent; color: #005050;
75 pre.doctest-block { background: #f4faff; color: #000000;
78 table pre.doctest-block
90 .re { background: transparent; color: #000000; }
91 .re-char { background: transparent; color: #006030; }
92 .re-op { background: transparent; color: #600000; }
93 .re-group { background: transparent; color: #003060; }
94 .re-ref { background: transparent; color: #404040; }
/dports/devel/spark/spark-2.1.1/dev/
H A Dmerge_spark_pr.py29 import re
95 def continue_maybe(prompt): argument
96 result = raw_input("\n%s (y/n): " % prompt)
292 jira_ids = re.findall("SPARK-[0-9]{4,5}", title)
332 pattern = re.compile(r'(SPARK[-\s]*[0-9]{3,6})+', re.IGNORECASE)
335 jira_refs.append('[' + re.sub(r'\s+', '-', ref.upper()) + ']')
340 pattern = re.compile(r'(\[[\w\s,-\.]+\])', re.IGNORECASE)
346 pattern = re.compile(r'^\W+(.*)', re.IGNORECASE)
354 clean_text = re.sub(r'\s+', ' ', clean_text.strip())
458 import doctest
[all …]
/dports/sysutils/py-ranger/ranger-1.9.3/ranger/gui/widgets/
H A Dconsole.py10 import re
24 prompt = ':'
107 self.addstr(0, 0, self.prompt)
129 if prompt is not None:
130 assert isinstance(prompt, str)
131 self.prompt = prompt
133 del self.prompt
400 while i >= 0 and re.match(
409 while i < len(self.line) and re.match(
532 import doctest
[all …]
/dports/devel/ipython/ipython-7.29.0/docs/source/
H A Dsphinxext.rst50 inserted, and prompts will be renumbered. So the prompt below should
90 @doctest
149 @doctest
394 to use the doctest option.
428 @doctest
446 lines. The default is `re.compile('In \[(\d+)\]:\s?(.*)\s*')`. You
452 lines. The default is `re.compile('Out\[(\d+)\]:\s?(.*)\s*')`. You
458 The string to represent the IPython input prompt in the generated ReST.
460 in the prompt.
464 The string to represent the IPython prompt in the generated ReST. The
[all …]
/dports/devel/libzookeeper/apache-zookeeper-3.7.0/
H A Dzk-merge-pr.py32 import re
106 def continue_maybe(prompt): argument
107 result = input("\n%s (y/n): " % prompt)
324 jira_ids = re.findall("%s-[0-9]{4,5}" % CAPITALIZED_PROJECT_NAME, title)
361 pattern = re.compile(r'(%s[-\s]*[0-9]{3,6})+' % CAPITALIZED_PROJECT_NAME, re.IGNORECASE)
364 jira_refs.append(re.sub(r'\s+', '-', ref.upper()))
369 pattern = re.compile(r'(\[[\w\s,-\.]+\])', re.IGNORECASE)
375 pattern = re.compile(r'^\W+(.*)', re.IGNORECASE)
386 clean_text = re.sub(r'\s+', ' ', clean_text.strip())
528 import doctest
[all …]
/dports/devel/ipython5/ipython-5.10.0/docs/source/interactive/
H A Dtips.rst25 special %doctest_mode command toggles a mode where the prompt, output and
29 (as is common in doctest files). This combined with the ``%history -t`` call
30 to see your translated history allows for an easy doctest workflow, where you
31 can go from doctest to interactive execution to pasting into valid Python code
47 you're working with large temporary objects, they'll be released from memory sooner.
73 prompt.
/dports/devel/ipython/ipython-7.29.0/docs/source/interactive/
H A Dtips.rst25 special ``%doctest_mode`` command toggles a mode where the prompt, output and
29 (as is common in doctest files). This combined with the ``%hist -t`` call to
30 see your translated history allows for an easy doctest workflow, where you
31 can go from doctest to interactive execution to pasting into valid Python code
47 you're working with large temporary objects, they'll be released from memory sooner.
73 prompt.
/dports/net/exabgp4/exabgp-4.2.13/lib/exabgp/vendoring/
H A Dcmd2.py27 import re
33 import doctest
992 def pseudo_raw_input(self, prompt): argument
997 line = raw_input(prompt)
1001 self.stdout.write(prompt)
1091 response = raw_input(prompt)
1485 pattern = re.compile(target, re.IGNORECASE)
1547 finder = re.compile(getme[1:-1], re.DOTALL | re.MULTILINE | re.IGNORECASE)
1674 anyWhitespace = re.compile(r'\s', re.DOTALL | re.MULTILINE)
1741 self.assert_(re.match(expected, result, re.MULTILINE | re.DOTALL), message)
[all …]
/dports/devel/py-greenlet/greenlet-1.1.2/docs/
H A Dgui_example.rst33 .. doctest::
56 .. doctest::
77 .. doctest::
86 about an event; it's important to stress that we're not in control of
114 (note that we're not starting it just yet, only defining it).
116 .. doctest::
127 .. doctest::
138 .. doctest::
150 .. doctest::
160 .. doctest::
[all …]
/dports/textproc/py-pygments/Pygments-2.7.2/scripts/
H A Depydoc.css172 * the re* CSS classes.
180 .re { color: #000000; }
181 .re-char { color: #006030; }
182 .re-op { color: #600000; }
183 .re-group { color: #003060; }
184 .re-ref { color: #404040; }
205 * - doctest examples are displayed in a 'pre.py-doctest' block.
207 * the colors specified by the 'table pre.py-doctest' line.
224 pre.py-doctest { margin-left: 1em; margin-right: 1.5em;
241 .py-prompt { color: #005050; font-weight: bold;}
/dports/textproc/py-pygments-25/Pygments-2.5.2/scripts/
H A Depydoc.css172 * the re* CSS classes.
180 .re { color: #000000; }
181 .re-char { color: #006030; }
182 .re-op { color: #600000; }
183 .re-group { color: #003060; }
184 .re-ref { color: #404040; }
205 * - doctest examples are displayed in a 'pre.py-doctest' block.
207 * the colors specified by the 'table pre.py-doctest' line.
224 pre.py-doctest { margin-left: 1em; margin-right: 1.5em;
241 .py-prompt { color: #005050; font-weight: bold;}
/dports/databases/py-kyotocabinet/kyotocabinet-python-1.23/doc/
H A Depydoc.css189 * the re* CSS classes.
201 .re { color: #000000; }
202 .re-char { color: #006030; }
203 .re-op { color: #600000; }
204 .re-group { color: #003060; }
205 .re-ref { color: #404040; }
225 * - doctest examples are displayed in a 'pre.py-doctest' block.
227 * the colors specified by the 'table pre.py-doctest' line.
243 pre.py-doctest { padding: .5em; margin: 1em;
246 table pre.py-doctest { background: #dce4ec;
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/common/py_vulcanize/third_party/rjsmin/docs/apidoc/
H A Depydoc.css189 * the re* CSS classes.
201 .re { color: #000000; }
202 .re-char { color: #006030; }
203 .re-op { color: #600000; }
204 .re-group { color: #003060; }
205 .re-ref { color: #404040; }
225 * - doctest examples are displayed in a 'pre.py-doctest' block.
227 * the colors specified by the 'table pre.py-doctest' line.
243 pre.py-doctest { padding: .5em; margin: 1em;
246 table pre.py-doctest { background: #dce4ec;
[all …]
/dports/science/py-pygeodesy/PyGeodesy-21.9.16/docs/
H A Depydoc.css189 * the re* CSS classes.
201 .re { color: #000000; }
202 .re-char { color: #006030; }
203 .re-op { color: #600000; }
204 .re-group { color: #003060; }
205 .re-ref { color: #404040; }
225 * - doctest examples are displayed in a 'pre.py-doctest' block.
227 * the colors specified by the 'table pre.py-doctest' line.
243 pre.py-doctest { padding: .5em; margin: 1em;
246 table pre.py-doctest { background: #dce4ec;
[all …]
/dports/archivers/py-rcssmin/rcssmin-1.0.6/docs/apidoc/
H A Depydoc.css189 * the re* CSS classes.
201 .re { color: #000000; }
202 .re-char { color: #006030; }
203 .re-op { color: #600000; }
204 .re-group { color: #003060; }
205 .re-ref { color: #404040; }
225 * - doctest examples are displayed in a 'pre.py-doctest' block.
227 * the colors specified by the 'table pre.py-doctest' line.
243 pre.py-doctest { padding: .5em; margin: 1em;
246 table pre.py-doctest { background: #dce4ec;
[all …]
/dports/deskutils/py-autokey/autokey-0.95.10/doc/scripting/
H A Depydoc.css189 * the re* CSS classes.
201 .re { color: #000000; }
202 .re-char { color: #006030; }
203 .re-op { color: #600000; }
204 .re-group { color: #003060; }
205 .re-ref { color: #404040; }
225 * - doctest examples are displayed in a 'pre.py-doctest' block.
227 * the colors specified by the 'table pre.py-doctest' line.
243 pre.py-doctest { padding: .5em; margin: 1em;
246 table pre.py-doctest { background: #dce4ec;
[all …]
/dports/mail/py-pyzmail/pyzmail-1.0.3/
H A Depydoc.css189 * the re* CSS classes.
201 .re { color: #000000; }
202 .re-char { color: #006030; }
203 .re-op { color: #600000; }
204 .re-group { color: #003060; }
205 .re-ref { color: #404040; }
225 * - doctest examples are displayed in a 'pre.py-doctest' block.
227 * the colors specified by the 'table pre.py-doctest' line.
243 pre.py-doctest { padding: .5em; margin: 1em;
254 table pre.py-doctest { background: #dce4ec;
[all …]
/dports/security/py-ssh/ssh-1.8.0/docs/
H A Depydoc.css189 * the re* CSS classes.
201 .re { color: #000000; }
202 .re-char { color: #006030; }
203 .re-op { color: #600000; }
204 .re-group { color: #003060; }
205 .re-ref { color: #404040; }
225 * - doctest examples are displayed in a 'pre.py-doctest' block.
227 * the colors specified by the 'table pre.py-doctest' line.
243 pre.py-doctest { padding: .5em; margin: 1em;
246 table pre.py-doctest { background: #dce4ec;
[all …]
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/catapult/common/py_vulcanize/third_party/rjsmin/docs/apidoc/
H A Depydoc.css189 * the re* CSS classes.
201 .re { color: #000000; }
202 .re-char { color: #006030; }
203 .re-op { color: #600000; }
204 .re-group { color: #003060; }
205 .re-ref { color: #404040; }
225 * - doctest examples are displayed in a 'pre.py-doctest' block.
227 * the colors specified by the 'table pre.py-doctest' line.
243 pre.py-doctest { padding: .5em; margin: 1em;
246 table pre.py-doctest { background: #dce4ec;
[all …]
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/catapult/common/py_vulcanize/third_party/rcssmin/docs/apidoc/
H A Depydoc.css189 * the re* CSS classes.
201 .re { color: #000000; }
202 .re-char { color: #006030; }
203 .re-op { color: #600000; }
204 .re-group { color: #003060; }
205 .re-ref { color: #404040; }
225 * - doctest examples are displayed in a 'pre.py-doctest' block.
227 * the colors specified by the 'table pre.py-doctest' line.
243 pre.py-doctest { padding: .5em; margin: 1em;
246 table pre.py-doctest { background: #dce4ec;
[all …]
/dports/net/py-mpi4py/mpi4py-3.1.3/docs/apiref/
H A Depydoc.css189 * the re* CSS classes.
201 .re { color: #000000; }
202 .re-char { color: #006030; }
203 .re-op { color: #600000; }
204 .re-group { color: #003060; }
205 .re-ref { color: #404040; }
225 * - doctest examples are displayed in a 'pre.py-doctest' block.
227 * the colors specified by the 'table pre.py-doctest' line.
243 pre.py-doctest { padding: .5em; margin: 1em;
246 table pre.py-doctest { background: #dce4ec;
[all …]

12345678910