]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
util.sh: Move out relpath import
authorLasse Schuirmann <lasse.schuirmann@gmail.com>
Sun, 20 Dec 2015 16:50:52 +0000 (17:50 +0100)
committerLasse Schuirmann <lasse.schuirmann@gmail.com>
Mon, 21 Dec 2015 09:48:30 +0000 (10:48 +0100)
This was detected by coala, rightfully, as an unused import.

babel/messages/extract.py
babel/util.py

index be2e6303ca4dcc92304eb6d860ff8de3ecd3ab99..8fe3f606c0eb8e9bd5c743f3a61cd20ea0188c4e 100644 (file)
 """
 
 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
 
index 0f3fb994730635954ab84ba752c34dc0417d60e0..1849e8a04be490c617e03acb06fcd4df8685a6b8 100644 (file)
@@ -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