mirror of
https://github.com/ceph/ceph
synced 2025-03-06 00:10:04 +00:00
ceph.in, ceph_rest_api.py: import only used syms from ceph_argparse.py
This makes pyflakes/pylint happier and is better practice in general Signed-off-by: Dan Mick <dan.mick@inktank.com>
This commit is contained in:
parent
55095d56ea
commit
28d58ebae5
@ -54,7 +54,10 @@ import string
|
||||
import struct
|
||||
import subprocess
|
||||
|
||||
from ceph_argparse import *
|
||||
from ceph_argparse import \
|
||||
concise_sig, descsort, parse_json_funcsigs, \
|
||||
matchnum, validate_command, find_cmd_target, \
|
||||
send_command, json_command
|
||||
|
||||
# just a couple of globals
|
||||
|
||||
|
@ -1,20 +1,20 @@
|
||||
#!/usr/bin/python
|
||||
# vim: ts=4 sw=4 smarttab expandtab
|
||||
|
||||
import collections
|
||||
import contextlib
|
||||
import errno
|
||||
import json
|
||||
import logging
|
||||
import logging.handlers
|
||||
import os
|
||||
import rados
|
||||
import textwrap
|
||||
import xml.etree.ElementTree
|
||||
import xml.sax.saxutils
|
||||
|
||||
import flask
|
||||
from ceph_argparse import *
|
||||
from ceph_argparse import \
|
||||
ArgumentError, CephPgid, CephOsdName, CephChoices, CephPrefix, \
|
||||
concise_sig, descsort, parse_funcsig, parse_json_funcsigs, \
|
||||
validate, json_command
|
||||
|
||||
#
|
||||
# Globals and defaults
|
||||
|
Loading…
Reference in New Issue
Block a user