Skip to content

Instantly share code, notes, and snippets.

@leviroth
Last active May 27, 2017 19:52
Show Gist options
  • Save leviroth/2896d552399fc27f7dbc1374e4ef989f to your computer and use it in GitHub Desktop.
Save leviroth/2896d552399fc27f7dbc1374e4ef989f to your computer and use it in GitHub Desktop.
Reddit response body on conflicting wiki edit
{'diffcontent': '\n'
' <table class="diff" id="difflib_chg_to0__top"\n'
' cellspacing="0" cellpadding="0" rules="groups" >\n'
' <colgroup></colgroup> <colgroup></colgroup> '
'<colgroup></colgroup>\n'
' <colgroup></colgroup> <colgroup></colgroup> '
'<colgroup></colgroup>\n'
' <thead><tr><th class="diff_next"><br /></th><th '
'colspan="2" class="diff_header">current edit</th><th '
'class="diff_next"><br /></th><th colspan="2" '
'class="diff_header">your edit</th></tr></thead>\n'
' <tbody>\n'
' <tr><td class="diff_next" '
'id="difflib_chg_to0__0"><a '
'href="#difflib_chg_to0__0">f</a></td><td class="diff_header" '
'id="from0_1">1</td><td nowrap="nowrap">foobar</td><td '
'class="diff_next"><a href="#difflib_chg_to0__0">f</a></td><td '
'class="diff_header" id="to0_1">1</td><td '
'nowrap="nowrap">foobar</td></tr>\n'
' <tr><td class="diff_next"><a '
'href="#difflib_chg_to0__top">t</a></td><td '
'class="diff_header"></td><td nowrap="nowrap"></td><td '
'class="diff_next"><a '
'href="#difflib_chg_to0__top">t</a></td><td '
'class="diff_header" id="to0_2">2</td><td '
'nowrap="nowrap"><span class="diff_add">baz</span></td></tr>\n'
' </tbody>\n'
' </table>',
'message': 'Conflict',
'newcontent': 'foobar',
'newrevision': '70c00c1a-430e-11e7-9fd5-0ee72d4e0e22',
'reason': 'EDIT_CONFLICT'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment