sumitgpl / pyector

Automatically exported from code.google.com/p/pyector
0 stars 0 forks source link

Ector instance has no botname attribute #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
$ python Ector.py -n ector -p "François"
Args    = []
Options = {'username': 'Fran\xe7ois', 'botname': 'ector', 'verbose': False}
botname = Ector
verbose = False
Traceback (most recent call last):
  File "Ector.py", line 129, in <module>
    ector    = Ector(botname, username)
  File "Ector.py", line 98, in __init__
    self.botname == botname    # FIXME: Why doesn't it work?!?
AttributeError: Ector instance has no attribute 'botname'

I don't understand why Ector's instanciation does not work.

Original issue reported on code.google.com by francois.parmentier@gmail.com on 28 Oct 2008 at 4:28

GoogleCodeExporter commented 8 years ago
I forgot to say: to reproduce the problem, uncomment line 129:

    ector    = Ector(botname, username)

Original comment by francois.parmentier@gmail.com on 28 Oct 2008 at 4:40

GoogleCodeExporter commented 8 years ago
What a confusion!
== does not mean = !
r48 fixes this issue. :)

Original comment by francois.parmentier@gmail.com on 29 Oct 2008 at 7:41