From 0fb83366b61af6c9cf5ff32164075d9d355cbbe8 Mon Sep 17 00:00:00 2001 From: Pieter Marsman Date: Tue, 16 Jul 2019 08:49:57 +0200 Subject: [PATCH] Remove intermediate variable `full_stop` because it is just a dot --- pdfminer/encodingdb.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pdfminer/encodingdb.py b/pdfminer/encodingdb.py index 5dcd8f2..dea23a1 100644 --- a/pdfminer/encodingdb.py +++ b/pdfminer/encodingdb.py @@ -1,4 +1,4 @@ - +import logging import re import six # Python 2+3 compatibility @@ -20,8 +20,7 @@ def name2unicode(name): :returns unicode character if name resembles something, otherwise a KeyError """ - full_stop = u'\u002E' - name = name.split(full_stop)[0] + name = name.split('.')[0] components = name.split('_') if len(components) > 1: