From: Lasse Schuirmann Date: Sun, 20 Dec 2015 16:50:52 +0000 (+0100) Subject: util.sh: Move out relpath import X-Git-Tag: 2.2.0~9^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a53d5f5e0e6f71eb0b6805f7c06b595c1c1b0ab;p=thirdparty%2Fbabel.git util.sh: Move out relpath import This was detected by coala, rightfully, as an unused import. --- 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