comparison mercurial/mdiff.py @ 20034:1e5b38a919dd

cleanup: move stdlib imports to their own import statement There are a few warnings still produced by my import checker, but those are false positives produced by modules that share a name with stdlib modules.
author Augie Fackler <raf@durin42.com>
date Wed, 06 Nov 2013 16:48:06 -0500
parents 1e13b1184292
children 3fbef7ac26f0
comparison
equal deleted inserted replaced
20033:f962870712da 20034:1e5b38a919dd
4 # 4 #
5 # This software may be used and distributed according to the terms of the 5 # This software may be used and distributed according to the terms of the
6 # GNU General Public License version 2 or any later version. 6 # GNU General Public License version 2 or any later version.
7 7
8 from i18n import _ 8 from i18n import _
9 import bdiff, mpatch, util 9 import bdiff, mpatch, util, base85
10 import re, struct, base85, zlib 10 import re, struct, zlib
11 11
12 def splitnewlines(text): 12 def splitnewlines(text):
13 '''like str.splitlines, but only split on newlines.''' 13 '''like str.splitlines, but only split on newlines.'''
14 lines = [l + '\n' for l in text.split('\n')] 14 lines = [l + '\n' for l in text.split('\n')]
15 if lines: 15 if lines: