"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "swift/common/middleware/x_profile/html_viewer.py" between
swift-2.19.1.tar.gz and swift-2.21.0.tar.gz

About: OpenStack swift is software for creating redundant, scalable object storage using clusters of commodity servers to store terabytes or even petabytes of accessible data (now supporting storage policies).
The "Stein" series (latest release).

html_viewer.py  (swift-2.19.1):html_viewer.py  (swift-2.21.0)
skipping to change at line 24 skipping to change at line 24
# limitations under the License. # limitations under the License.
import cgi import cgi
import os import os
import random import random
import re import re
import string import string
import tempfile import tempfile
from swift import gettext_ as _ from swift import gettext_ as _
from exceptions import PLOTLIBNotInstalled, ODFLIBNotInstalled,\ from swift.common.middleware.x_profile.exceptions import PLOTLIBNotInstalled
NotFoundException, MethodNotAllowed, DataLoadFailure, ProfileException from swift.common.middleware.x_profile.exceptions import ODFLIBNotInstalled
from profile_model import Stats2 from swift.common.middleware.x_profile.exceptions import NotFoundException
from swift.common.middleware.x_profile.exceptions import MethodNotAllowed
from swift.common.middleware.x_profile.exceptions import DataLoadFailure
from swift.common.middleware.x_profile.exceptions import ProfileException
from swift.common.middleware.x_profile.profile_model import Stats2
PLOTLIB_INSTALLED = True PLOTLIB_INSTALLED = True
try: try:
import matplotlib import matplotlib
# use agg backend for writing to file, not for rendering in a window. # use agg backend for writing to file, not for rendering in a window.
# otherwise some platform will complain "no display name and $DISPLAY # otherwise some platform will complain "no display name and $DISPLAY
# environment variable" # environment variable"
matplotlib.use('agg') matplotlib.use('agg')
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
except ImportError: except ImportError:
 End of changes. 1 change blocks. 
3 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)