1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-06 03:10:57 +01:00
lethliel 2b47be6b1e switch to difflib.diff_bytes in python3 case.
The files are now opened as rb for diffing. In python2 nothing changes.
In python3 the returned diff is bytes now.

The following changes were made:
  * commandline.py: The returned diff is now bytes
  * get_diff now returs the diff as a bytes-like object
  * run_pager writes with sys.stdout.buffer.write if message
    is not a string
  * for the commit message the returned diff needs to be decoded
    now. Otherwise it will just producce garbage. For the commit
    message the diff on decoded bytes-objects is ok. (nothing harmfull
    can happen here)
  * fixed submit_action_diff
  * fixed request_interactive_review
2019-07-24 13:48:39 +02:00
..
2010-12-19 20:32:06 +01:00
2010-12-19 20:32:06 +01:00
2010-12-19 20:32:06 +01:00
2014-08-12 15:01:16 +02:00