aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/ui/util/editor.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/ui/util/editor.py')
-rw-r--r--libbe/ui/util/editor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbe/ui/util/editor.py b/libbe/ui/util/editor.py
index f852c01..8412ff6 100644
--- a/libbe/ui/util/editor.py
+++ b/libbe/ui/util/editor.py
@@ -36,7 +36,7 @@ if libbe.TESTING == True:
import doctest
-comment_marker = u"== Anything below this line will be ignored\n"
+comment_marker = "== Anything below this line will be ignored\n"
class CantFindEditor(Exception):
def __init__(self):
@@ -76,7 +76,7 @@ def editor_string(comment=None, encoding=None):
fhandle, fname = tempfile.mkstemp()
try:
if comment is not None:
- cstring = u'\n'+comment_string(comment)
+ cstring = '\n'+comment_string(comment)
os.write(fhandle, cstring.encode(encoding))
os.close(fhandle)
oldmtime = os.path.getmtime(fname)