from __futre__ import print_function
This commit is contained in:
parent
a9002374b1
commit
ec252440d9
14 changed files with 49 additions and 34 deletions
|
|
@ -1,6 +1,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vi:si:et:sw=4:sts=4:ts=4
|
||||
# GPL 2009
|
||||
from __future__ import print_function
|
||||
import os
|
||||
|
||||
from ox.utils import json
|
||||
|
|
@ -15,7 +16,7 @@ def get(key):
|
|||
auth = json.loads(data)
|
||||
if key in auth:
|
||||
return auth[key]
|
||||
print "please add key %s to json file '%s'" % (key, user_auth)
|
||||
print("please add key %s to json file '%s'" % (key, user_auth))
|
||||
raise Exception,"no key %s found" % key
|
||||
|
||||
def update(key, value):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue