~charm-helpers/charm-helpers/devel

« back to all changes in this revision

Viewing changes to tests/contrib/openstack/test_os_contexts.py

  • Committer: Stuart Bishop
  • Date: 2014-11-25 16:06:34 UTC
  • mfrom: (158.2.46 fix-configure_sources)
  • Revision ID: stuart@stuartbishop.net-20141125160634-wo9uarwrv20ew23y
[stub, r=niedbalski,tvansteenburgh] The Return of Python 3 Support

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
import six
15
15
 
16
 
if six.PY2:
 
16
if not six.PY3:
17
17
    open_builtin = '__builtin__.open'
18
18
else:
19
19
    open_builtin = 'builtins.open'