Created
November 20, 2017 22:54
-
-
Save digitalresistor/0196d1eb35910673cd0f8a88046b0ba3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def myfunc(): | |
""" | |
>>> print(myfunc()) | |
some text | |
<BLANKLINE> | |
not blank | |
""" | |
l = ['some text', '', 'not blank'] | |
return '\r\n'.join(l) | |
def myfunc_n(): | |
""" | |
>>> print(myfunc_n()) | |
some text | |
<BLANKLINE> | |
not blank | |
""" | |
l = ['some text', '', 'not blank'] | |
return '\n'.join(l) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment