Update cut.py

Line 132: cut.clip command always copy "utf-8" when single cut specified (ie :cut.clip @focus request.method gets "utf-8")
This commit is contained in:
jplochocki 2018-03-18 16:16:03 +01:00 committed by GitHub
parent ca75e2738a
commit 28c7eb17c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,7 +129,7 @@ class Cut:
if isinstance(v, bytes): if isinstance(v, bytes):
fp.write(strutils.always_str(v)) fp.write(strutils.always_str(v))
else: else:
fp.write("utf8") fp.write(v)
ctx.log.alert("Clipped single cut.") ctx.log.alert("Clipped single cut.")
else: else:
writer = csv.writer(fp) writer = csv.writer(fp)