X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=coe%2Fbin.py;h=b9ee6018aa361d1ce1c413b09a0ee7d41e1dd705;hb=72f60d5b10b41b7c807524e9746b1e797d8c09ec;hp=e965a79336463ab479e1b14bec213ae20ffbd649;hpb=ef6415d59129ca99fa4a0c23110a43ea6abe3a64;p=coe.git diff --git a/coe/bin.py b/coe/bin.py index e965a79..b9ee601 100644 --- a/coe/bin.py +++ b/coe/bin.py @@ -89,9 +89,9 @@ class encoder(object): return if datum == None: self.writetag(dst, T_NIL, 0, None) - elif datum == False: + elif datum is False: self.writetag(dst, T_NIL, NIL_FALSE, None) - elif datum == True: + elif datum is True: self.writetag(dst, T_NIL, NIL_TRUE, None) elif isinstance(datum, int): self.writetag(dst, T_INT, 0, None) @@ -292,4 +292,4 @@ class decoder(object): return self.loadtagged(fp, tag) def load(fp): - decoder().load(fp) + return decoder().load(fp)