Workaround output variance in pprint.pformat.

TEST=fix unit tests
BUG=none

Review URL: http://codereview.chromium.org/1627009

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@43952 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/gclient.py b/gclient.py
index b1dc49a..498848a 100644
--- a/gclient.py
+++ b/gclient.py
@@ -399,7 +399,12 @@
     Args:
       entries: A sequence of solution names.
     """
-    text = "entries = \\\n" + pprint.pformat(entries, 2) + '\n'
+    # Sometimes pprint.pformat will use {', sometimes it'll use { ' ... It
+    # makes testing a bit too fun.
+    result = pprint.pformat(entries, 2)
+    if result.startswith('{\''):
+      result[0:2] = '{ \''
+    text = "entries = \\\n" + result + '\n'
     file_path = os.path.join(self._root_dir, self._options.entries_filename)
     gclient_utils.FileWrite(file_path, text)