diff options
author | Sergio Ahumada <sahumada@blackberry.com> | 2015-02-14 10:45:59 +0100 |
---|---|---|
committer | Sergio Ahumada <sahumada@texla.cl> | 2015-02-24 13:53:46 +0000 |
commit | b65865fca05eacfe3768186c95289c6a4a2d6008 (patch) | |
tree | 48a8dec149f77318d6d1d6bedc62fae768d50580 | |
parent | ed5345761f7be49cc07672391d00bd807558e876 (diff) |
patch_qmake_qt_key: Fix typo 'rb+' -> 'r+b'QtCreator3.3.1
According to the python documentation (python 2 and python 3)
the only valid modes to open a file are 'rb', 'wb', and 'r+b'
where 'r+' means open for both read and write
this change amends 579ec89
Change-Id: If1ead510b5f277d7256f8535b92b821d1583ccf0
Reviewed-by: Iikka Eklund <iikka.eklund@theqtcompany.com>
-rw-r--r-- | packaging-tools/patch_qmake_qt_key.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging-tools/patch_qmake_qt_key.py b/packaging-tools/patch_qmake_qt_key.py index 39eba2c2f..21d2f16f9 100644 --- a/packaging-tools/patch_qmake_qt_key.py +++ b/packaging-tools/patch_qmake_qt_key.py @@ -65,7 +65,7 @@ def replace_key(qmake_file_name, key, new_value): print '*** Length for the given new value was: ' + str(len(new_value)) return False - filename = open(qmake_file_name, 'rb+') + filename = open(qmake_file_name, 'r+b') text = '' while True: temp = filename.read() |