Commits

spirit committed b5892d1

Lines read from readlines() have line terminators.

Comments (0)

Files changed (1)

guess_language/__main__.py

         encoding = args.encoding or "utf-8"
 
     with open(file, encoding=encoding) as f:
-        text = "\n".join(f.readlines())
+        text = "".join(f.readlines())
 
     guess_language.USE_ENCHANT = args.use_enchant
     tag = guess_language.guess_language(text)