summaryrefslogtreecommitdiffstats
path: root/core/views/expo.py
diff options
context:
space:
mode:
authorMartin Green <martin.speleo@gmail.com>2022-06-21 22:45:11 +0100
committerMartin Green <martin.speleo@gmail.com>2022-06-21 22:45:11 +0100
commitf0a9c337956327923363543ae25d7c59c1f9a8cc (patch)
treed7cf87e05c8b563d33e8822a6cc43e65148005d3 /core/views/expo.py
parent843bfa8ba62c1d187647a2eda5f071beefc44a7e (diff)
downloadtroggle-f0a9c337956327923363543ae25d7c59c1f9a8cc.tar.gz
troggle-f0a9c337956327923363543ae25d7c59c1f9a8cc.tar.bz2
troggle-f0a9c337956327923363543ae25d7c59c1f9a8cc.zip
bug fix to previous test
Diffstat (limited to 'core/views/expo.py')
-rw-r--r--core/views/expo.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/views/expo.py b/core/views/expo.py
index 277cb7f..05e3642 100644
--- a/core/views/expo.py
+++ b/core/views/expo.py
@@ -344,10 +344,10 @@ def editexpopage(request, path):
body = "### File not found ###\n" + str(filepath)
import sys
import locale
- body = body + "\nsys.getdefaultencoding() = " + sys.getdefaultencoding()
- body = body + "\nsys.getfilesystemencoding() = " + sys.getfilesystemencoding()
- body = body + "\nlocale.getdefaultlocale() = " + locale.getdefaultlocale()
- body = body + "\nlocale.getpreferredencoding() = " + locale.getpreferredencoding()
+ body = body + "\nsys.getdefaultencoding() = " + str(sys.getdefaultencoding())
+ body = body + "\nsys.getfilesystemencoding() = " + str(sys.getfilesystemencoding())
+ body = body + "\nlocale.getdefaultlocale() = " + str(locale.getdefaultlocale())
+ body = body + "\nlocale.getpreferredencoding() = " + str(locale.getpreferredencoding())
pageform = ExpoPageForm({"html": body, "title": "Missing"})
return render(request, 'editexpopage.html', {'path': path, 'form': pageform, })