adamlamers / prettytable

Python utility for easily creating text-based tables
Other
8 stars 2 forks source link

max_width setter don't work #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 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 9 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