__init__.py
来自「subversion-1.4.3-1.tar.gz 配置svn的源码」· Python 代码 · 共 33 行
PY
33 行
__all__ = ["main", "tree", "actions"]import sysif sys.hexversion < 0x2000000: sys.stderr.write('[SKIPPED] at least Python 2.0 is required') # note: exiting is a bit harsh for a library module, but we really do # require Python 2.0. this package isn't going to work otherwise. and if # a user truly wants to use this package under 1.x somehow (or to clean # up in some way), then they can always trap the SystemExit exception # we're skipping this test, not failing, so exit with 0 sys.exit(0)# don't export this namedel sysclass Failure(Exception): 'Base class for exceptions that indicate test failure' passclass Skip(Exception): 'Base class for exceptions that indicate test was skipped' passclass SVNAnyOutput: """This class should be used to represent that you require output (whether stdout or stderr) from your test--regardless of what the output might be.""" passimport main, tree, actions, wc
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?