Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move some module imports to command runtime

Move module imports of the fedora_cert, koji, and pyfedpkg
modules to the actual command runtime.

This gets rid of the requirement to have them (and their
respective imported modules) installed at build time for
generating the man page.
  • Loading branch information...
commit 0f0cddc23380aa947e980a6bfbcdfd3ecb9c0469 1 parent 682b73e
@ndim ndim authored jkeating committed
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/fedpkg.py
View
8 src/fedpkg.py
@@ -11,13 +11,10 @@
# the full text of the license.
import argparse
-import pyfedpkg
-import fedora_cert
import os
import sys
import getpass
import logging
-import koji
import xmlrpclib
import time
import random
@@ -1450,7 +1447,12 @@ def parse_cmdline(generate_manpage = False):
# to stderr. Normal operation will show anything INFO and above.
# Quiet hides INFO, while Verbose exposes DEBUG. In all cases WARN or
# higher are exposed (via stderr).
+
+ import fedora_cert
+ import koji
+ import pyfedpkg
log = pyfedpkg.log
+
if args.v:
log.setLevel(logging.DEBUG)
elif args.q:
Please sign in to comment.
Something went wrong with that request. Please try again.