/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/textfile.py

  • Committer: Breezy landing bot
  • Author(s): Martin
  • Date: 2017-06-05 14:25:10 UTC
  • mfrom: (6654.1.1 index_prefix_dedupe)
  • Revision ID: breezy.the.bot@gmail.com-20170605142510-v8g9z86d4yw78fvm
Add index._iter_entries_prefix helper to remove copied code

Merged from https://code.launchpad.net/~gz/brz/index_prefix_dedupe/+merge/325052

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Utilities for distinguishing binary files from text files"""
18
18
 
 
19
from __future__ import absolute_import
 
20
 
19
21
from itertools import chain
20
22
 
21
 
from bzrlib.errors import BinaryFile
22
 
from bzrlib.iterablefile import IterableFile
23
 
from bzrlib.osutils import file_iterator
 
23
from .errors import BinaryFile
 
24
from .iterablefile import IterableFile
 
25
from .osutils import file_iterator
24
26
 
25
27
 
26
28
def text_file(input):