Skip to content

Commit c8b19c4

Browse files
author
Neil
committed
Update scripts to user print function
1 parent 4b241b9 commit c8b19c4

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

scripts/sqlobject-admin

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python
2+
from __future__ import print_function
23
import sys
34
import os
45

@@ -22,8 +23,8 @@ except ImportError:
2223
if os.path.exists(updir):
2324
sys.path.insert(0, os.path.dirname(updir))
2425
else:
25-
print 'I cannot find the sqlobject module'
26-
print 'If SQLObject is installed, you may need to set $PYTHONPATH'
26+
print('I cannot find the sqlobject module')
27+
print('If SQLObject is installed, you may need to set $PYTHONPATH')
2728
sys.exit(3)
2829
# Now we have to get rid of possibly stale modules from that import
2930
# up there

scripts/sqlobject-convertOldURI

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python
2+
from __future__ import print_function
23

34
import sys
45

@@ -15,4 +16,4 @@ except (ImportError, pkg_resources.DistributionNotFound):
1516

1617
from sqlobject import connectionForURI
1718
conn = connectionForURI(uri, oldUri=True)
18-
print conn.uri()
19+
print(conn.uri())

0 commit comments

Comments
 (0)