[Pkg-bazaar-commits] r124 ./bzr-builddeb/people/jdw/merge_upstream: Add some 'throws' documentation to the repack_tarball docstring.
James Westby
jw+debian at jameswestby.net
Sun Jun 24 10:12:45 UTC 2007
------------------------------------------------------------
revno: 124
committer: James Westby <jw+debian at jameswestby.net>
branch nick: merge_upstream
timestamp: Sun 2007-06-24 11:12:45 +0100
message:
Add some 'throws' documentation to the repack_tarball docstring.
modified:
repack_tarball.py
-------------- next part --------------
=== modified file 'repack_tarball.py'
--- a/repack_tarball.py 2007-06-24 10:09:21 +0000
+++ b/repack_tarball.py 2007-06-24 10:12:45 +0000
@@ -53,6 +53,11 @@
:type target_dir: string
:return: None
:warning: .zip files are currently unsupported.
+ :throws NoSuchFile: if orig_name doesn't exist.
+ :throws NotADirectory: if target_dir exists and is not a directory.
+ :throws FileExists: if the target filename (after considering target_dir
+ exists.
+ :throes BzrCommandError: if the source isn't supported for repacking.
"""
if not os.path.exists(orig_name):
raise NoSuchFile(orig_name)
More information about the Pkg-bazaar-commits
mailing list