##// END OF EJS Templates
Enable `check_make_token_by_line_never_ends_empty` test...
Enable `check_make_token_by_line_never_ends_empty` test It was added in 28a8ea639a7a37bfb03ee87d397ea5e69dcc537e but missed `test_` prefix in the name. Note: There is a type mismatch in calls to `make_tokens_by_line` but that does not lead to an error.

File last commit:

r21078:2098e1d4
r27082:420a29d8
Show More
sentinel.py
17 lines | 421 B | text/x-python | PythonLexer
"""Sentinel class for constants with useful reprs"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
class Sentinel(object):
def __init__(self, name, module, docstring=None):
self.name = name
self.module = module
if docstring:
self.__doc__ = docstring
def __repr__(self):
return str(self.module)+'.'+self.name