• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(37)  |  Call(32)  |  Derive(0)  |  Import(5)
No Document.

        def register_optionflag(name):
    # Create a new flag unless `name` is already known.
    return OPTIONFLAGS_BY_NAME.setdefault(name, 1 << len(OPTIONFLAGS_BY_NAME))
        


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/z/3/z3c.form-2.4.1/src/z3c/form/testing.py   z3c.form(Download)
import zope.interface
import zope.schema
 
from doctest import register_optionflag
from zope.app.testing import setup
from zope.pagetemplate.interfaces import IPageTemplate
from zope.publisher.browser import TestRequest
import lxml.doctestcompare
 
# register lxml doctest option flags
lxml.doctestcompare.NOPARSE_MARKUP = register_optionflag('NOPARSE_MARKUP')
 
class TestingFileUploadDataConverter(converter.FileUploadDataConverter):
    """A special file upload data converter that works with testing."""