Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/util.py @ 14100:3e9e02a41dfb
util: really drop size from readfile
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 01 May 2011 04:56:24 -0500 |
parents | 0824a0a3cefc |
children | 1618c4f6f15b |
comparison
equal
deleted
inserted
replaced
14099:0824a0a3cefc | 14100:3e9e02a41dfb |
---|---|
772 makedirs(name, mode) | 772 makedirs(name, mode) |
773 | 773 |
774 def readfile(path): | 774 def readfile(path): |
775 fp = open(path) | 775 fp = open(path) |
776 try: | 776 try: |
777 return fp.read(size) | 777 return fp.read() |
778 finally: | 778 finally: |
779 fp.close() | 779 fp.close() |
780 | 780 |
781 def writefile(path, mode, text): | 781 def writefile(path, mode, text): |
782 fp = open(path, mode) | 782 fp = open(path, mode) |