First version with python3 support.

* Moved requirements*.txt files to proper spec definitions in setup.py
 * Added a new fig.compat module to store some compatibility code
This commit is contained in:
Christopher Grebs 2014-01-05 18:26:32 -08:00 committed by Ben Firshman
commit 93b9b6fd9f
21 changed files with 83 additions and 27 deletions

View file

@ -1,3 +1,5 @@
from __future__ import unicode_literals
from __future__ import absolute_import
from docker import Client
import errno
import logging
@ -21,7 +23,7 @@ class Command(DocoptCommand):
def project(self):
try:
config = yaml.load(open('fig.yml'))
except IOError, e:
except IOError as e:
if e.errno == errno.ENOENT:
log.error("Can't find %s. Are you in the right directory?", e.filename)
else: