public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
* [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20160629-1-g681578b
@ 2016-07-05 12:02 jturney
0 siblings, 0 replies; only message in thread
From: jturney @ 2016-07-05 12:02 UTC (permalink / raw)
To: cygwin-apps-cvs
https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=681578b1dbf8bda60a76562da171f65173725908
commit 681578b1dbf8bda60a76562da171f65173725908
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date: Tue Jul 5 12:58:11 2016 +0100
Don't import dirq unless we actually need it
Don't import dirq unless we actually need it, i.e. if the experimental
option --queuedir is used.
Diff:
---
calm/queue.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/calm/queue.py b/calm/queue.py
index d9b1d8f..94ad04c 100644
--- a/calm/queue.py
+++ b/calm/queue.py
@@ -21,7 +21,6 @@
# THE SOFTWARE.
#
-from dirq.QueueSimple import QueueSimple
import logging
import os
import re
@@ -42,6 +41,7 @@ def add(args, movelist, fromdir):
queue_root = os.path.join(args.queuedir, 'dirq')
upload_root = os.path.join(args.queuedir, 'uploads')
+ from dirq.QueueSimple import QueueSimple
dirq = QueueSimple(os.path.join(queue_root, QUEUE))
# clean up empty directories
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-07-05 12:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-05 12:02 [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20160629-1-g681578b jturney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).