[Calypso] [PATCH] Remove unused imports.

Jelmer Vernooij jelmer at jelmer.uk
Sun Apr 3 08:31:42 PDT 2016


From: Jelmer Vernooij <jelmer at jelmer.uk>

---
 calypso/paths.py                 | 1 -
 calypso/webdav.py                | 4 ----
 calypso/xmlutils.py              | 2 --
 tests/test_collection.py         | 1 -
 tests/test_matchfilterelement.py | 1 -
 5 files changed, 9 deletions(-)

diff --git a/calypso/paths.py b/calypso/paths.py
index 429b901..8483fff 100644
--- a/calypso/paths.py
+++ b/calypso/paths.py
@@ -20,7 +20,6 @@
 # along with Calypso.  If not, see <http://www.gnu.org/licenses/>.
 
 import urllib
-import os
 import os.path
 import posixpath # the semantics of urls follow posix rules, not platform dependent rules
 import logging
diff --git a/calypso/webdav.py b/calypso/webdav.py
index 133d684..3b8c21c 100644
--- a/calypso/webdav.py
+++ b/calypso/webdav.py
@@ -29,17 +29,13 @@ Define the main classes of a collection as seen from the server.
 import os
 import codecs
 import time
-import calendar
 import hashlib
 import glob
 import logging
 import tempfile
 import vobject
-import string
 import re
 import subprocess
-import urllib
-import copy
 
 from . import config, paths
 
diff --git a/calypso/xmlutils.py b/calypso/xmlutils.py
index 202e263..127076c 100644
--- a/calypso/xmlutils.py
+++ b/calypso/xmlutils.py
@@ -37,8 +37,6 @@ import dateutil.tz
 import datetime
 import email.utils
 import logging
-import urllib
-import os.path
 
 from . import client, config, webdav, paths
 
diff --git a/tests/test_collection.py b/tests/test_collection.py
index a3e3115..baa49d9 100644
--- a/tests/test_collection.py
+++ b/tests/test_collection.py
@@ -1,7 +1,6 @@
 # vim: set fileencoding=utf-8 :
 """Test L{gbp.command_wrappers.Command}'s tarball unpack"""
 
-import os
 import subprocess
 import tempfile
 import shutil
diff --git a/tests/test_matchfilterelement.py b/tests/test_matchfilterelement.py
index 582d74f..ca28285 100644
--- a/tests/test_matchfilterelement.py
+++ b/tests/test_matchfilterelement.py
@@ -1,7 +1,6 @@
 # vim: set fileencoding=utf-8 :
 """Test matching filter handling """
 
-import sys
 import subprocess
 import tempfile
 import shutil
-- 
2.8.0.rc3



More information about the Calypso mailing list