/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/plugins/fastimport/exporter.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-01-24 03:25:31 UTC
  • mfrom: (7239.2.1 ends-gz)
  • Revision ID: breezy.the.bot@gmail.com-20190124032531-oyjfjthncornnwes
Require .gz as extension for gzipped files.

Merged from https://code.launchpad.net/~jelmer/brz/ends-gz/+merge/361693

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
def _get_output_stream(destination):
86
86
    if destination is None or destination == '-':
87
87
        return helpers.binary_stream(getattr(sys.stdout, "buffer", sys.stdout))
88
 
    elif destination.endswith('gz'):
 
88
    elif destination.endswith('.gz'):
89
89
        import gzip
90
90
        return gzip.open(destination, 'wb')
91
91
    else: