ensure write_manifest passes contents to write_file as unicode strings.

--HG--
extra : rebase_source : 719fb2eb2c3599c57d7a11f5fc55cf9a88d74df7
ignore .git* files
test_sdist: change the latin1 test to match the behavior of write_manifest
Improved comment in the latin1 sdist test.
Merge changes from Pull Request 50
Backed out changeset: 1ceaffff2d9b (restoring b0a2fcc5275a). Ref #193

--HG--
extra : rebase_source : 5ca0514bbe3ec025094ea8f39921722d0ab3dd05
Merge in test changes from previous try

--HG--
extra : rebase_source : 0dba3308549833dc7fc5b242e8ae3a4ec9f3c119
with_statements and output utf-8 output

*Since py2.5 has been dropped, we can use future imports to
make use of with statements.

*End goal was to always decode to utf-8 in write_file on 307

--HG--
extra : rebase_source : 502ea7128f4e3b843b16c6d64d6d0b2ac56ce87d
Starting a unicode_utils module.

--HG--
extra : source : 2e47fa11a272ed61f7c1bbf88aae27e81040fe93
In corporate the old unicode with the spirit of what the FileList updating.

--HG--
extra : source : 199c917b8a0be209144878872269c3bd08936d6a
Merge 4 out of 5 commits from Philip Thiem's unicode_try_2. Ref #193
with_statement is available naturally in Python 2.6
Compute PY3 directly and switch on that for clarity.
Add a PY2 also.
Use PY3 and PY2 throughout
Convert quiet to a context manager, so its comment is no longer complaining and to simplify the code.
Remove unused import
est_manifest_is_written_with_utf8_encoding should use the filelist's append, NOT filelist.files.append

--HG--
extra : rebase_source : cdf0df0a11b96a60c29c10483579e6e043a7fcd1
Must create files for tests, else they are remoed from manifests

--HG--
extra : rebase_source : c22b55cde69bbf7fc6a075bcd8797017797c6225
Must create files for tests, else they are remoed from manifests