/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: Gustav Hartvigsson
  • Date: 2021-01-11 20:19:38 UTC
  • mfrom: (7526.3.2 work)
  • Revision ID: gustav.hartvigsson@gmail.com-20210111201938-omr9wjz3qdgyxe8k
MergedĀ lp:brz

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)