def register_optionflag(name):
# Create a new flag unless `name` is already known.
return OPTIONFLAGS_BY_NAME.setdefault(name, 1 << len(OPTIONFLAGS_BY_NAME))
doctest.NORMALIZE_INDENTATION = (
doctest.register_optionflag('NORMALIZE_INDENTATION'))
doctest.NORMALIZE_FUNCTION_PARAMETERS = (
doctest.register_optionflag('NORMALIZE_FUNCTION_PARAMETERS'))
src/c/l/clojure-nltk-HEAD/src/clojure_nltk/python-nltk-src/nltk-2.0b7/tools/find_deprecated.py clojure-nltk(Download)
import os, re, sys, tokenize, textwrap import nltk, nltk.corpus from doctest import DocTestParser, register_optionflag from cStringIO import StringIO from nltk import defaultdict
######################################################################
# If we're using py24, then ignore the +SKIP directive.
if sys.version_info[:2] < (2,5): register_optionflag('SKIP')
def strip_quotes(s):
s = s.strip()
src/n/l/nltk-HEAD/trunk/nltk/tools/find_deprecated.py nltk(Download)
import os, re, sys, tokenize, textwrap import nltk, nltk.corpus from doctest import DocTestParser, register_optionflag from cStringIO import StringIO from nltk import defaultdict
######################################################################
# If we're using py24, then ignore the +SKIP directive.
if sys.version_info[:2] < (2,5): register_optionflag('SKIP')
def strip_quotes(s):
s = s.strip()
src/n/l/nltk-HEAD/nltk/tools/find_deprecated.py nltk(Download)
import os, re, sys, tokenize, textwrap import nltk, nltk.corpus from doctest import DocTestParser, register_optionflag from cStringIO import StringIO from nltk import defaultdict
######################################################################
# If we're using py24, then ignore the +SKIP directive.
if sys.version_info[:2] < (2,5): register_optionflag('SKIP')
def strip_quotes(s):
s = s.strip()
src/z/o/zope.testing-3.10.0/src/zope/testing/doctest/__init__.py zope.testing(Download)
# Option constants.
from doctest import register_optionflag, \
OPTIONFLAGS_BY_NAME, \
DONT_ACCEPT_TRUE_FOR_1, \
DONT_ACCEPT_BLANKLINE, \
REPORT_ONLY_FIRST_FAILURE, \
REPORTING_FLAGS
INTERPRET_FOOTNOTES = register_optionflag('INTERPRET_FOOTNOTES')
# Special string markers for use in `want` strings:
BLANKLINE_MARKER = '<BLANKLINE>'
src/y/a/yajl-py-HEAD/tests/minimock.py yajl-py(Download)
doctest.NORMALIZE_INDENTATION = (
doctest.register_optionflag('NORMALIZE_INDENTATION'))
doctest.NORMALIZE_FUNCTION_PARAMETERS = (
doctest.register_optionflag('NORMALIZE_FUNCTION_PARAMETERS'))
src/z/a/zamboni-lib-HEAD/lib/python/IPython/testing/plugin/ipdoctest.py zamboni-lib(Download)
line[indent:space_idx], line))
SKIP = doctest.register_optionflag('SKIP')
class IPDocTestRunner(doctest.DocTestRunner,object):
src/e/p/epydoc-HEAD/epydoc/src/epydoc/test/__init__.py epydoc(Download)
return
PY24 = doctest.register_optionflag('PYTHON2.4')
"""Flag indicating that a doctest example requires Python 2.4+"""
PY25 = doctest.register_optionflag('PYTHON2.5')
src/i/p/ipython-py3k-HEAD/IPython/testing/plugin/ipdoctest.py ipython-py3k(Download)
line[indent:space_idx], line))
SKIP = doctest.register_optionflag('SKIP')
class IPDocTestRunner(doctest.DocTestRunner,object):
src/e/p/epydoc-HEAD/src/epydoc/test/__init__.py epydoc(Download)
return
PY24 = doctest.register_optionflag('PYTHON2.4')
"""Flag indicating that a doctest example requires Python 2.4+"""
PY25 = doctest.register_optionflag('PYTHON2.5')
1 | 2 Next