Bug 27745 - dict.has_key(key) → key in dict || dict.get(key)
dict.has_key(key) → key in dict || dict.get(key)
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 3.0
All Linux
: P5 enhancement (vote)
: UCS 3.1
Assigned To: Philipp Hahn
Florian Best
: interim-3
Depends on:
Blocks: 34474
  Show dependency treegraph
 
Reported: 2012-06-26 15:06 CEST by Philipp Hahn
Modified: 2014-04-04 10:39 CEST (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Cleanup
Max CVSS v3 score:
hahn: Patch_Available+


Attachments
has_key() (8.46 KB, patch)
2012-06-26 15:06 CEST, Philipp Hahn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2012-06-26 15:06:15 CEST
W:0009-5: python/univention-errata-components-update:234:22: dict.has_key is deprecated in python3 - please use "if key in dict:"
W:0009-5: python/univention-updater:413:89: dict.has_key is deprecated in python3 - please use "if key in dict:"
W:0009-5: python/univention-repository-migrate:220:20: dict.has_key is deprecated in python3 - please use "if key in dict:"
W:0009-5: python/univention-repository-create:254:20: dict.has_key is deprecated in python3 - please use "if key in dict:"
W:0009-5: python/univention-repository-update:262:19: dict.has_key is deprecated in python3 - please use "if key in dict:"
W:0009-5: python/univention-errata-update:208:22: dict.has_key is deprecated in python3 - please use "if key in dict:"
W:0009-5: python/univention-repository-merge:87:16: dict.has_key is deprecated in python3 - please use "if key in dict:"
W:0009-5: modules/univention/updater/mirror.py:51:25: dict.has_key is deprecated in python3 - please use "if key in dict:"
W:0009-5: modules/univention/updater/mirror.py:55:25: dict.has_key is deprecated in python3 - please use "if key in dict:"
Comment 1 Philipp Hahn univentionstaff 2012-06-26 15:06:41 CEST
Created attachment 4478 [details]
has_key()
Comment 2 Stefan Gohmann univentionstaff 2012-07-17 17:09:43 CEST
UCS 3.1 will be the next release.
Comment 3 Philipp Hahn univentionstaff 2012-08-07 21:16:27 CEST
Code wurde überarbeitet.

svn34051, 34694, univention-updater_8.0.2-1.1066.201208072113

ChangeLog: svn14239
\item Some old code still using deprecated functions has been cleaned up (\ucsBug{27745}).
Comment 4 Florian Best univentionstaff 2012-11-20 10:05:42 CET
(In reply to comment #3)
> Code wurde überarbeitet.
>
> svn34051, 34694, univention-updater_8.0.2-1.1066.201208072113
OK
 
> ChangeLog: svn14239
> \item Some old code still using deprecated functions has been cleaned up
> (\ucsBug{27745}).
OK
Comment 5 Stefan Gohmann univentionstaff 2012-12-12 21:10:50 CET
UCS 3.1-0 has been released: 
 http://forum.univention.de/viewtopic.php?f=54&t=2125

If this error occurs again, please use "Clone This Bug".