/Test/simple.py
http://github.com/fishman/ctags · Python · 63 lines · 38 code · 17 blank · 8 comment · 1 complexity · e9b4377d9c79b817e13673d3bc9b27c4 MD5 · raw file
- """A long string
- literal
- """
- from bsddb import btopen
- # Public global constants
- VERSION = '1.2.0'
- # Flags for list() and children()
- ALL = 0xff
- KEY = 0x01
- TREEID = 0x02
- INDENT = 0x04
- DATA = 0x08 # Used by dbtreedata
- class one:
-
- x = lambda x: x
- y = 0
- def __init__(self, filename, pathsep='', treegap=64):
- """Another string
- literal"""
- def __private_function__(self, key, data):
-
- def public_function(self, key):
- class this_is_ignored:
- def _pack(self, i, s): '''this is''' """a""" '''string
- literal'''"""
- class inside_string:
- """
- class so_is_this:
- def _test(test, code, outcome, exception):
- def ignored_function():
- def more_nesting():
- class deeply_nested():
- def even_more():
- @blah class this is seen???
- @bleh def this also? good!
- if __name__ == '__main__':
- class two (one):
- def only(arg):
- # line continuation
- class\
- three\
- (A, B,
- C):
- def\
- foo(
- x
- ,
- y, z):