[MERGE] code cleanups for bzrdir.py

Alexander Belchenko bialix at ukr.net
Tue Sep 18 09:26:58 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ian Clatworthy пишет:

# Begin patch
> === modified file 'bzrlib/bzrdir.py'
> --- bzrlib/bzrdir.py	2007-09-17 12:46:56 +0000
> +++ bzrlib/bzrdir.py	2007-09-18 07:14:35 +0000
> @@ -1445,7 +1455,8 @@
>          klass._default_format = format
>  
>      def __str__(self):
> -        return self.get_format_string()[:-1]
> +        # Trim the newline
> +        return self.get_format_string().rstrip()
>  

^-- .rstrip() w/o arguments trim all whitespaces as well as newline,
i.e. space, tab. Is it intended behavior?

bb:comment

[µ]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG74vSzYr338mxwCURAjM3AJwMPjlzsP43b8Wae6YJXKWv9kdNYwCeJQbb
+RtX/5ahmdj8XzcV/qM81iI=
=BdIp
-----END PGP SIGNATURE-----



More information about the bazaar mailing list