1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
Description: try avoiding imports if possible
we don't need the full import for basic functionality
(e.g. when running help2man during the build).
Thus we make most imports optional, resulting in failures only
when we try to access the imported libs
Author: IOhannes m zmölnig
Last-Update: 2015-07-31
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- deken.orig/developer/deken.hy
+++ deken/developer/deken.hy
@@ -7,6 +7,7 @@
(import argparse)
(import datetime)
+(try (do
(import platform)
(import zipfile)
(import tarfile)
@@ -23,6 +24,7 @@
(catch [e ImportError] (import [urllib.parse [urlparse]])))
(import requests)
(import easywebdav)
+)(catch [e ImportError] ()))
(require hy.contrib.loop)
|