Fixes for hacking 0.6

- Add missing License Header to exc.
- Use python 3 compatible print.

Change-Id: Ibbcbfadffb978f9d8789e1fbc0c0819da06489d3
This commit is contained in:
Clint Byrum 2013-07-19 10:24:24 -07:00
parent 367fb38267
commit 737fff67c3
2 changed files with 17 additions and 1 deletions

View File

@ -129,7 +129,7 @@ def __main__(args=sys.argv, requests_impl_map=None):
else:
logger.debug("No changes detected.")
else:
print json.dumps(content, indent=1)
print(json.dumps(content, indent=1))
if __name__ == '__main__':

View File

@ -1,3 +1,19 @@
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
class SourceNotAvailable(RuntimeError):
"""The requested data source is unavailable."""