Trees | Indices | Help |
|
---|
|
object --+ | DebianSourceFormat
Contents of debian/source/format
>>> d = DebianSourceFormat("3.0 (quilt)") >>> d.type 'quilt' >>> d.version '3.0' >>> d = DebianSourceFormat("3.0 (native)") >>> d.type 'native' >>> d = DebianSourceFormat("1.0") >>> d.type >>> d.version '1.0' >>> d = DebianSourceFormat("1.0 broken") Traceback (most recent call last): ... DebianSourceFormatError: Cannot get source format from '1.0 broken'
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
DebianSourceFormat
>>> import tempfile, os >>> with tempfile.NamedTemporaryFile(delete=False) as t: ... t.write("3.0 (quilt)") >>> d = DebianSourceFormat.parse_file(t.name) >>> d.version '3.0' >>> d.type 'quilt' >>> os.unlink(t.name) |
|
||
|
|
|||
format_file =
|
|
|||
version The source format version number |
|||
type The 'type' (e.g. |
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
str(x)
|
Parse debian/source/format file
|
Write a format file from type and format at format_file
|
|
versionThe source format version number
|
typeThe 'type' (e.g. git, native)
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Dec 31 11:30:00 2016 | http://epydoc.sourceforge.net |