From 601f39ad6fdf605f4a32809f16bada8bb9fb22d5 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 16 Sep 2014 20:44:34 -0400 Subject: use from_address instead of cast cast is used if you already have a value with the given memory buffer --- vt100/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vt100') 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)) -- cgit v1.2.3