diff --git a/bat2nodes.py b/bat2nodes.py index d68be00..3f4ee05 100755 --- a/bat2nodes.py +++ b/bat2nodes.py @@ -10,7 +10,7 @@ from d3mapbuilder import D3MapBuilder # Force encoding to UTF-8 import locale # Ensures that subsequent open()s -locale.getpreferredencoding = lambda: 'UTF-8' # are UTF-8 encoded. +locale.getpreferredencoding = lambda _=None: 'UTF-8' # are UTF-8 encoded. import sys #sys.stdin = open('/dev/stdin', 'r')