contrib/pep8analysis: Fix operand check in hexdigit
authorLucas Bajolet <r4pass@hotmail.com>
Tue, 15 Dec 2015 16:51:28 +0000 (11:51 -0500)
committerLucas Bajolet <r4pass@hotmail.com>
Thu, 17 Dec 2015 20:13:30 +0000 (15:13 -0500)
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

contrib/pep8analysis/src/model/operands.nit

index d74d1f1..8723a4a 100644 (file)
@@ -33,8 +33,7 @@ redef class AStringValue
 end
 
 redef class AHexValue
-       #TODO
-       redef fun to_i do return n_hex.text.to_hex
+       redef fun to_i do return n_hex.text.trim.to_hex(2)
 end
 
 redef class TString # TkBlock