Menu

#445 bug accessing 'availableOptions' dict in Bot() class

closed-accepted
rewrite (37)
5
2010-05-19
2010-05-18
stanlekub
No

The Bot() class defines a dictionary named 'availableOptions', which is supposedly customizable by subclassing Bot(), but the Bot.getOption() and Bot.setOptions() methods use the "unbounded" Bot.availableOptions call.

The attached (very small) patch modifies this by replacing Bot.availableOptions with self.availableOptions, so that subclasses can use a custom dict.

Discussion

  • stanlekub

    stanlekub - 2010-05-18

    Proposed patch

     
  • Russell Blau

    Russell Blau - 2010-05-19

    Applied in r8189; thanks for the aptch.

     
  • Russell Blau

    Russell Blau - 2010-05-19
    • labels: 1164065 --> rewrite
    • assigned_to: russblau --> nicdumz
    • status: open --> closed-accepted
     

Log in to post a comment.