/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/ssl_certs/create_ssls.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2021-01-10 01:31:27 UTC
  • mfrom: (7526.2.2 merge-3.1)
  • mto: This revision was merged to the branch mainline in revision 7532.
  • Revision ID: breezy.the.bot@gmail.com-20210110013127-vn6x2k2uv21p805n
Merge lp:brz/3.1

Merged from https://code.launchpad.net/~jelmer/brz/merge-3.1/+merge/396037

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /usr/bin/env python
 
1
#! /usr/bin/env python3
2
2
 
3
3
# Copyright (C) 2007, 2008, 2009, 2017 Canonical Ltd
4
4
#
84
84
    """
85
85
    cmd = ['openssl'] + args
86
86
    proc = Popen(cmd, stdin=PIPE)
87
 
    (stdout, stderr) = proc.communicate(input)
 
87
    (stdout, stderr) = proc.communicate(input.encode('utf-8'))
88
88
    if proc.returncode:
89
89
        # Basic error handling, all commands should succeed
90
90
        raise CalledProcessError(proc.returncode, cmd)