jailkit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Jailkit-dev] [bug #60452] jk_update: has_key unavailable in python3


From: anonymous
Subject: [Jailkit-dev] [bug #60452] jk_update: has_key unavailable in python3
Date: Sat, 24 Apr 2021 10:45:57 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0

URL:
  <https://savannah.nongnu.org/bugs/?60452>

                 Summary: jk_update: has_key unavailable in python3
                 Project: Jailkit
            Submitted by: None
            Submitted on: Sat 24 Apr 2021 02:45:55 PM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Hi,

jk_update uses has_key which is not available anymore in python3.

Error message:
AttributeError: 'dict' object has no attribute 'has_key'

has_key is used in 2 lines in jk_update:
    $ grep -n has_key /usr/sbin/jk_update 
    263:            if (not config.has_key('hardlink') and
cfg.has_option(configsection,'hardlink')):
    272:    if (not config.has_key('hardlink')):

Easy fix: s/config.has_key('hardlink')/'hardlink' in config/

Regards
Matthias Ferdinand




    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?60452>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]