summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Schuirmann <lasse.schuirmann@gmail.com>2015-12-20 17:50:52 +0100
committerLasse Schuirmann <lasse.schuirmann@gmail.com>2015-12-21 10:48:30 +0100
commit1a53d5f5e0e6f71eb0b6805f7c06b595c1c1b0ab (patch)
tree982502ffb0b0ff42a96c840d0e20b36f9a237b44
parent27ec384abf02721e003831b93e3bc50e0a831f12 (diff)
downloadbabel-1a53d5f5e0e6f71eb0b6805f7c06b595c1c1b0ab.tar.gz
util.sh: Move out relpath import
This was detected by coala, rightfully, as an unused import.
-rw-r--r--babel/messages/extract.py3
-rw-r--r--babel/util.py1
2 files changed, 2 insertions, 2 deletions
diff --git a/babel/messages/extract.py b/babel/messages/extract.py
index be2e630..8fe3f60 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 0f3fb99..1849e8a 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