Closed pspacek closed 7 years ago
enc() should always return bytes. This works for me:
diff --git a/augeas/__init__.py b/augeas/__init__.py
index ab9a2b1..ccfcec0 100644
--- a/augeas/__init__.py
+++ b/augeas/__init__.py
@@ -57,7 +57,7 @@ def enc(st):
if st:
return st.encode(AUGENC)
else:
- return ''
+ return b''
def dec(st):
As far as I can tell handling
None
values require special care. Right now an attempt to set a value toNone
produces following error:This is very unfortunate because setting values to None is used to implement
touch
command similar toaugtool
.