neuroradiology / prettytable

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

max_width setter don't work #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Setting max_with (e.g. "my_table.max_with = 800") will cause an exception like 
this:

Traceback (most recent call last):
  ...
  File "prettytable.py", line 333, in _set_max_width
    self._validate_nonnegativeint(val)
  File "prettytable.py", line 163, in __getattr__
    raise AttributeError(name)
AttributeError: _validate_nonnegativeint

because _validate_nonnegativeint(...) is unknown in class PrettyTable.
I assume that _validate_nonnegative_int(...) is meant here.

Original issue reported on code.google.com by rohlf...@gmail.com on 30 Oct 2012 at 6:07

GoogleCodeExporter commented 8 years ago
You are correct that validate_nonnegative_int is what is meant.  This bug is 
actually already fixed in the trunk version of PrettyTable, so the correct 
behaviour will definitely be in the next release.

Original comment by luke@maurits.id.au on 31 Oct 2012 at 6:02