  import re
  import string
  import iso8601
-@@ -19,7 +20,7 @@ def deserialize(token):
- 
-     Raises DeserializationError when appropriate.
-     """
--    
-+
-     if token.type == TYPE_BOOLEAN:
-         return _to_boolean(token)
-     elif token.type == TYPE_INTEGER:
 @@ -39,42 +40,40 @@ def _unescape_str(text):
      """
      Unescapes a string according the TOML spec. Raises BadEscapeCharacter when appropriate.

+            tokens.append(escapes[text[i]])
+            i += 1
+    return ''.join(tokens)
 
 
 def _to_string(token):

+
+    flush()
+    return ''.join(res)


 def _create_multiline_string_token(text):
diff --git a/pipenv/patched/prettytoml/tokens/toml2py.py b/pipenv/patched/prettytoml/tokens/toml2py.py
index 2bf9c1c..5680443 100644
