[Python-checkins] r43435 - in python/trunk: Doc/dist/dist.tex Lib/distutils/command/upload.py

Neal Norwitz nnorwitz at gmail.com
Thu Mar 30 06:18:24 CEST 2006


On 3/29/06, phillip.eby <python-checkins at python.org> wrote:
>
> Modified: python/trunk/Doc/dist/dist.tex

Can you add a \versionadded{2.5} for this change at the appropriate location?

> Modified: python/trunk/Lib/distutils/command/upload.py
> ==============================================================================
> --- python/trunk/Lib/distutils/command/upload.py        (original)
> +++ python/trunk/Lib/distutils/command/upload.py        Thu Mar 30 04:12:14 2006
> @@ -67,7 +73,10 @@
>      def upload_file(self, command, pyversion, filename):
>          # Sign if requested
>          if self.sign:
> -            spawn(("gpg", "--detach-sign", "-a", filename),
> +            gpg_args = ["gpg", "--detach-sign", "-a", filename]
> +            if self.identity:
> +                gpg_args[2:2] = ["--local-user", self.identity]
> +            spawn(gpg_args,

Why do gpg_args[2:2] rather than gpg_args[2]?  You know the list is long enough.

n


More information about the Python-checkins mailing list