Advertisement
Guest User

Untitled

a guest
May 14th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. import pytoml
  4.  
  5. # Original document, assumed to have been edited by an Human
  6. doc = r'''str2 = """
  7. The quick brown \
  8.  
  9.  
  10.   fox jumps over \
  11.     the lazy dog."""'''
  12.  
  13. doc2 = r"""str2 = '''
  14. The quick brown \
  15.  
  16.  
  17.   fox jumps over \
  18.     the lazy dog.'''"""
  19.  
  20.  
  21.  
  22. t = pytoml.loads(doc)
  23. print(pytoml.dumps(t))
  24.  
  25. t = pytoml.loads(doc2)
  26. print(pytoml.dumps(t))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement