Skip to content

Commit 6b3095b

Browse files
committed
Change print function to support Python 3
1 parent ce2771a commit 6b3095b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎astroquery/astrometry_net/core.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
"""
136136

137137
# Licensed under a 3-clause BSD style license - see LICENSE.rst
138-
#from __future__ import print_function
138+
from __future__ import print_function
139139

140140
# put all imports organized as shown below
141141
# 1. standard library imports
@@ -318,9 +318,9 @@ def _write_headers(self, msg):
318318
# doesn't provide the flexibility to override, so we
319319
# have to copy-n-paste-n-modify.
320320
for h, v in msg.items():
321-
print >> self._fp, ('%s: %s\r\n' % (h,v)),
321+
self._fp.write('%s: %s\r\n' % (h,v))
322322
# A blank line always separates headers from body
323-
print >> self._fp, '\r\n',
323+
self._fp.write('\r\n')
324324

325325
# The _write_multipart method calls "clone" for the
326326
# subparts. We hijack that, setting root=False

0 commit comments

Comments
 (0)