From 1a53d5f5e0e6f71eb0b6805f7c06b595c1c1b0ab Mon Sep 17 00:00:00 2001 From: Lasse Schuirmann Date: Sun, 20 Dec 2015 17:50:52 +0100 Subject: [PATCH] util.sh: Move out relpath import This was detected by coala, rightfully, as an unused import. --- babel/messages/extract.py | 3 ++- babel/util.py | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/babel/messages/extract.py b/babel/messages/extract.py index be2e6303..8fe3f606 100644 --- a/babel/messages/extract.py +++ b/babel/messages/extract.py @@ -18,10 +18,11 @@ """ import os +from os.path import relpath import sys from tokenize import generate_tokens, COMMENT, NAME, OP, STRING -from babel.util import parse_encoding, pathmatch, relpath +from babel.util import parse_encoding, pathmatch from babel._compat import PY2, text_type from textwrap import dedent diff --git a/babel/util.py b/babel/util.py index 0f3fb994..1849e8a0 100644 --- a/babel/util.py +++ b/babel/util.py @@ -12,7 +12,6 @@ import codecs from datetime import timedelta, tzinfo import os -from os.path import relpath import re import textwrap from babel._compat import izip, imap -- 2.47.2