Rev 6019: (mbp) avoid unbound local error in export (Martin Pool) in file:///home/pqm/archives/thelove/bzr/%2Btrunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Mon Jul 11 02:07:21 UTC 2011


At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 6019 [merge]
revision-id: pqm at pqm.ubuntu.com-20110711020719-grdhcun2kagpyrpk
parent: pqm at pqm.ubuntu.com-20110711004307-81znwhxfsrz1fqx0
parent: mbp at canonical.com-20110711005924-6ntq4s3ylztg2ug8
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Mon 2011-07-11 02:07:19 +0000
message:
  (mbp) avoid unbound local error in export (Martin Pool)
modified:
  bzrlib/export/tar_exporter.py  tar_exporter.py-20051114235828-1f6349a2f090a5d0
=== modified file 'bzrlib/export/tar_exporter.py'
--- a/bzrlib/export/tar_exporter.py	2011-06-28 13:54:56 +0000
+++ b/bzrlib/export/tar_exporter.py	2011-07-11 00:59:24 +0000
@@ -141,10 +141,10 @@
         root_mtime = None
 
     is_stdout = False
+    basename = None
     if fileobj is not None:
         stream = fileobj
     elif dest == '-':
-        basename = None
         stream = sys.stdout
         is_stdout = True
     else:




More information about the bazaar-commits mailing list