diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-09-16 20:44:34 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-09-16 20:44:34 -0400 |
commit | 601f39ad6fdf605f4a32809f16bada8bb9fb22d5 (patch) | |
tree | 317521161c5503b094cc9e3213d3e03c9dd4b6b1 /vt100 | |
parent | e64bcd5a81149c7ad5b5c39b7c1140d5f47ccc6b (diff) | |
download | libvt100-python-601f39ad6fdf605f4a32809f16bada8bb9fb22d5.tar.gz libvt100-python-601f39ad6fdf605f4a32809f16bada8bb9fb22d5.zip |
use from_address instead of cast
cast is used if you already have a value with the given memory buffer
Diffstat (limited to 'vt100')
-rw-r--r-- | vt100/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vt100/__init__.py b/vt100/__init__.py index 4e1a192..2161866 100644 --- a/vt100/__init__.py +++ b/vt100/__init__.py @@ -75,4 +75,4 @@ class vt100(object): ) def cell(self, x, y): - return cast(vt100_raw.cell_at(self.vt, x, y), vt100_cell) + return vt100_cell.from_address(vt100_raw.cell_at(self.vt, x, y)) |