← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 676504] Re: [6.0] has_keys() is deprecated use 'in'

 

Christophe,

has_keys() does not seem to be deprecated in Python 2. Like all code
improvements, this is interesting but should happen gradually as code is
modified/improved, not as a global change just for the sake of it.
Essentially, this is not a bug.

Also, may I ask you not to assign milestones on unconfirmed bugs
anymore, as they are now used by R&D to indicate when they plan to fix a
given bug. OpenERP drivers are invited to apply the new bug management
process at: http://doc.openerp.com/contribute/11_bug_tracker.html

Thanks a lot!

** Changed in: openobject-addons
   Importance: Undecided => Wishlist

** Changed in: openobject-addons
       Status: New => Invalid

** Changed in: openobject-addons
    Milestone: 6.0-rc2 => None

** Tags added: long-term

-- 
[6.0] has_keys() is deprecated use 'in'
https://bugs.launchpad.net/bugs/676504
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: Invalid

Bug description:
Theses files uses has_keys() instead of 'in' operator

./account/account.py:207:31: W601 .has_key() is deprecated, use 'in'
./account/account.py:1740:31: W601 .has_key() is deprecated, use 'in'
./account/account.py:1746:31: W601 .has_key() is deprecated, use 'in'
./account/account_move_line.py:136:16: W601 .has_key() is deprecated, use 'in'
./account/account_move_line.py:138:16: W601 .has_key() is deprecated, use 'in'
./account/account_move_line.py:720:19: W601 .has_key() is deprecated, use 'in'
./account/report/account_aged_partner_balance.py:176:31: W601 .has_key() is deprecated, use 'in'
./account/report/account_aged_partner_balance.py:183:31: W601 .has_key() is deprecated, use 'in'
./account/report/account_aged_partner_balance.py:191:30: W601 .has_key() is deprecated, use 'in'
./account/report/account_aged_partner_balance.py:197:22: W601 .has_key() is deprecated, use 'in'
./account/report/account_aged_partner_balance.py:306:27: W601 .has_key() is deprecated, use 'in'
./account/report/account_aged_partner_balance.py:312:27: W601 .has_key() is deprecated, use 'in'
./account/report/account_aged_partner_balance.py:319:26: W601 .has_key() is deprecated, use 'in'
./account/report/account_aged_partner_balance.py:325:18: W601 .has_key() is deprecated, use 'in'
./account_analytic_plans/account_analytic_plans.py:121:19: W601 .has_key() is deprecated, use 'in'
./account_analytic_plans/account_analytic_plans.py:207:28: W601 .has_key() is deprecated, use 'in'
./account_analytic_plans/account_analytic_plans.py:219:37: W601 .has_key() is deprecated, use 'in'
./account_analytic_plans/account_analytic_plans.py:230:24: W601 .has_key() is deprecated, use 'in'
./account_analytic_plans/account_analytic_plans.py:232:24: W601 .has_key() is deprecated, use 'in'
./account_analytic_plans/account_analytic_plans.py:305:16: W601 .has_key() is deprecated, use 'in'
./account_budget/account_budget.py:120:23: W601 .has_key() is deprecated, use 'in'
./account_budget/account_budget.py:122:23: W601 .has_key() is deprecated, use 'in'
./account_budget/account_budget.py:146:23: W601 .has_key() is deprecated, use 'in'
./account_budget/account_budget.py:148:23: W601 .has_key() is deprecated, use 'in'
./account_coda/wizard/account_coda_import.py:117:44: W601 .has_key() is deprecated, use 'in'
./account_coda/wizard/account_coda_import.py:257:32: W601 .has_key() is deprecated, use 'in'
./account_invoice_layout/account_invoice_layout.py:66:22: W601 .has_key() is deprecated, use 'in'
./account_invoice_layout/account_invoice_layout.py:99:16: W601 .has_key() is deprecated, use 'in'
./account_invoice_layout/account_invoice_layout.py:110:16: W601 .has_key() is deprecated, use 'in'
./auction/barcode/code128.py:279:24: W601 .has_key() is deprecated, use 'in'
./auction/barcode/code39.py:249:25: W601 .has_key() is deprecated, use 'in'
./auction/barcode/code93.py:191:29: W601 .has_key() is deprecated, use 'in'
./auction/barcode/code93.py:216:29: W601 .has_key() is deprecated, use 'in'
./auction/barcode/code93.py:226:25: W601 .has_key() is deprecated, use 'in'
./auction/barcode/code93.py:228:27: W601 .has_key() is deprecated, use 'in'
./base_module_quality/structure_test/structure_test.py:91:23: W601 .has_key() is deprecated, use 'in'
./base_module_quality/structure_test/structure_test.py:105:23: W601 .has_key() is deprecated, use 'in'
./base_module_quality/structure_test/structure_test.py:119:23: W601 .has_key() is deprecated, use 'in'
./base_module_quality/structure_test/structure_test.py:127:23: W601 .has_key() is deprecated, use 'in'
./base_module_quality/unit_test/unit_test.py:108:35: W601 .has_key() is deprecated, use 'in'
./base_module_record/base_module_record.py:307:22: W601 .has_key() is deprecated, use 'in'
./base_report_designer/openerp_sxw2rml/openerp_sxw2rml.py:156:66: W601 .has_key() is deprecated, use 'in'
./caldav/calendar.py:488:23: W601 .has_key() is deprecated, use 'in'
./crm_caldav/crm_caldav.py:86:23: W601 .has_key() is deprecated, use 'in'
./document/content_index.py:109:13: W601 .has_key() is deprecated, use 'in'
./document/content_index.py:113:17: W601 .has_key() is deprecated, use 'in'
./document/content_index.py:143:39: W601 .has_key() is deprecated, use 'in'
./document/content_index.py:148:25: W601 .has_key() is deprecated, use 'in'
./document/document_directory.py:88:31: W601 .has_key() is deprecated, use 'in'
./document/nodes.py:327:25: W601 .has_key() is deprecated, use 'in'
./document_webdav/cache.py:20:26: W601 .has_key() is deprecated, use 'in'
./document_webdav/dav_fs.py:226:21: W601 .has_key() is deprecated, use 'in'
./document_webdav/dav_fs.py:288:21: W601 .has_key() is deprecated, use 'in'
./document_webdav/test_davclient.py:62:26: W601 .has_key() is deprecated, use 'in'
./document_webdav/test_davclient.py:170:26: W601 .has_key() is deprecated, use 'in'
./document_webdav/test_davclient.py:193:32: W601 .has_key() is deprecated, use 'in'
./document_webdav/test_davclient.py:393:20: W601 .has_key() is deprecated, use 'in'
./document_webdav/webdav_server.py:173:24: W601 .has_key() is deprecated, use 'in'
./document_webdav/webdav_server.py:192:24: W601 .has_key() is deprecated, use 'in'
./document_webdav/webdav_server.py:225:24: W601 .has_key() is deprecated, use 'in'
./document_webdav/webdav_server.py:254:24: W601 .has_key() is deprecated, use 'in'
./email_template/html2text.py:190:21: W601 .has_key() is deprecated, use 'in'
./email_template/html2text.py:197:17: W601 .has_key() is deprecated, use 'in'
./email_template/html2text.py:198:21: W601 .has_key() is deprecated, use 'in'
./email_template/html2text.py:199:30: W601 .has_key() is deprecated, use 'in'
./email_template/html2text.py:249:25: W601 .has_key() is deprecated, use 'in'
./email_template/html2text.py:262:25: W601 .has_key() is deprecated, use 'in'
./email_template/html2text.py:285:21: W601 .has_key() is deprecated, use 'in'
./email_template/html2text.py:392:32: W601 .has_key() is deprecated, use 'in'
./event/event.py:658:20: W601 .has_key() is deprecated, use 'in'
./event/wizard/partner_event_registration.py:59:16: W601 .has_key() is deprecated, use 'in'
./hr_holidays/hr_holidays.py:95:31: W601 .has_key() is deprecated, use 'in'
./hr_holidays/hr_holidays.py:201:19: W601 .has_key() is deprecated, use 'in'
./hr_holidays/hr_holidays.py:203:19: W601 .has_key() is deprecated, use 'in'
./hr_timesheet_invoice/hr_timesheet_invoice.py:109:22: W601 .has_key() is deprecated, use 'in'
./l10n_ch/wizard/create_dta.py:97:24: W601 .has_key() is deprecated, use 'in'
./l10n_ch/wizard/create_dta.py:99:36: W601 .has_key() is deprecated, use 'in'
./l10n_ch/wizard/create_dta.py:101:27: W601 .has_key() is deprecated, use 'in'
./outlook/plugin/openerp-outlook-plugin/dialogs/processors.py:80:26: W601 .has_key() is deprecated, use 'in'
./outlook/plugin/openerp-outlook-plugin/dialogs/resources/rcparser.py:159:34: W601 .has_key() is deprecated, use 'in'
./point_of_sale/wizard/pos_return.py:371:28: W601 .has_key() is deprecated, use 'in'
./project/project.py:57:31: W601 .has_key() is deprecated, use 'in'
./resource/resource.py:327:25: W601 .has_key() is deprecated, use 'in'
./resource/resource.py:336:23: W601 .has_key() is deprecated, use 'in'
./resource/resource.py:345:25: W601 .has_key() is deprecated, use 'in'
./resource/faces/resource.py:618:25: W601 .has_key() is deprecated, use 'in'
./resource/faces/resource.py:644:25: W601 .has_key() is deprecated, use 'in'
./resource/faces/resource.py:843:25: W601 .has_key() is deprecated, use 'in'
./resource/faces/resource.py:855:19: W601 .has_key() is deprecated, use 'in'
./resource/faces/task.py:178:33: W601 .has_key() is deprecated, use 'in'
./resource/faces/task.py:330:24: W601 .has_key() is deprecated, use 'in'
./resource/faces/task.py:336:28: W601 .has_key() is deprecated, use 'in'
./resource/faces/task.py:856:24: W601 .has_key() is deprecated, use 'in'
./resource/faces/task.py:893:24: W601 .has_key() is deprecated, use 'in'
./resource/faces/task.py:1268:25: W601 .has_key() is deprecated, use 'in'
./resource/faces/task.py:1402:25: W601 .has_key() is deprecated, use 'in'
./resource/faces/task.py:1958:24: W601 .has_key() is deprecated, use 'in'
./resource/faces/task.py:2184:33: W601 .has_key() is deprecated, use 'in'
./resource/faces/task.py:2453:55: W601 .has_key() is deprecated, use 'in'
./resource/faces/task.py:2505:30: W601 .has_key() is deprecated, use 'in'
./resource/faces/task.py:2918:25: W601 .has_key() is deprecated, use 'in'
./resource/faces/task.py:3481:42: W601 .has_key() is deprecated, use 'in'
./resource/faces/task.py:3482:42: W601 .has_key() is deprecated, use 'in'
./resource/faces/task.py:3759:30: W601 .has_key() is deprecated, use 'in'
./sale_layout/sale_layout.py:81:16: W601 .has_key() is deprecated, use 'in'
./sale_layout/sale_layout.py:91:16: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:179:134: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:181:19: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:349:20: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:356:20: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:367:20: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:379:20: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:388:28: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:402:28: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:414:28: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:430:73: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:432:48: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:435:50: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:445:16: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:446:20: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:449:16: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:450:20: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:454:20: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:455:24: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:458:20: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:461:24: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:463:24: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:470:44: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:472:46: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:496:134: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:499:19: W601 .has_key() is deprecated, use 'in'
./survey/survey.py:584:134: W601 .has_key() is deprecated, use 'in'
./survey/report/survey_analysis_report.py:116:17: W601 .has_key() is deprecated, use 'in'
./survey/report/survey_browse_response.py:35:17: W601 .has_key() is deprecated, use 'in'
./survey/report/survey_browse_response.py:43:19: W601 .has_key() is deprecated, use 'in'
./survey/report/survey_browse_response.py:64:17: W601 .has_key() is deprecated, use 'in'
./survey/report/survey_browse_response.py:189:17: W601 .has_key() is deprecated, use 'in'
./survey/report/survey_browse_response.py:191:21: W601 .has_key() is deprecated, use 'in'
./survey/report/survey_browse_response.py:514:25: W601 .has_key() is deprecated, use 'in'
./survey/report/survey_browse_response.py:516:31: W601 .has_key() is deprecated, use 'in'
./survey/report/survey_form.py:33:17: W601 .has_key() is deprecated, use 'in'
./survey/report/survey_form.py:40:19: W601 .has_key() is deprecated, use 'in'
./survey/report/survey_form.py:63:17: W601 .has_key() is deprecated, use 'in'
./survey/report/survey_form.py:382:21: W601 .has_key() is deprecated, use 'in'
./survey/report/survey_form.py:384:27: W601 .has_key() is deprecated, use 'in'
./survey/wizard/survey_answer.py:68:27: W601 .has_key() is deprecated, use 'in'
./survey/wizard/survey_answer.py:82:23: W601 .has_key() is deprecated, use 'in'
./survey/wizard/survey_answer.py:120:37: W601 .has_key() is deprecated, use 'in'
./survey/wizard/survey_answer.py:155:31: W601 .has_key() is deprecated, use 'in'
./survey/wizard/survey_answer.py:183:37: W601 .has_key() is deprecated, use 'in'
./survey/wizard/survey_answer.py:189:35: W601 .has_key() is deprecated, use 'in'
./survey/wizard/survey_answer.py:371:31: W601 .has_key() is deprecated, use 'in'
./survey/wizard/survey_answer.py:373:33: W601 .has_key() is deprecated, use 'in'
./survey/wizard/survey_answer.py:375:33: W601 .has_key() is deprecated, use 'in'
./survey/wizard/survey_answer.py:380:31: W601 .has_key() is deprecated, use 'in'
./survey/wizard/survey_answer.py:490:19: W601 .has_key() is deprecated, use 'in'
./survey/wizard/survey_answer.py:536:27: W601 .has_key() is deprecated, use 'in'
./survey/wizard/survey_answer.py:538:23: W601 .has_key() is deprecated, use 'in'
./survey/wizard/survey_answer.py:561:19: W601 .has_key() is deprecated, use 'in'
./survey/wizard/survey_answer.py:567:27: W601 .has_key() is deprecated, use 'in'
./survey/wizard/survey_answer.py:599:23: W601 .has_key() is deprecated, use 'in'
./survey/wizard/survey_answer.py:600:27: W601 .has_key() is deprecated, use 'in'
./survey/wizard/survey_selection.py:44:19: W601 .has_key() is deprecated, use 'in'
./survey/wizard/survey_selection.py:61:19: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:196:28: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:198:20: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:211:16: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:217:20: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:223:50: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:245:20: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:423:49: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:481:49: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:586:33: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:770:18: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:774:18: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:1150:18: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:1158:18: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:1181:76: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:1204:19: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:1237:22: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:1245:19: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:1265:19: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:1364:120: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:1544:30: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:1698:24: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:1707:24: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:2372:44: W601 .has_key() is deprecated, use 'in'
./wiki/web/widgets/rss/feedparser.py:2514:24: W601 .has_key() is deprecated, use 'in'





References