diff options
Diffstat (limited to 'manifest_xml.py')
| -rw-r--r-- | manifest_xml.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/manifest_xml.py b/manifest_xml.py index 31987248..bb93bca3 100644 --- a/manifest_xml.py +++ b/manifest_xml.py | |||
| @@ -13,6 +13,7 @@ | |||
| 13 | # See the License for the specific language governing permissions and | 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. | 14 | # limitations under the License. |
| 15 | 15 | ||
| 16 | from __future__ import print_function | ||
| 16 | import itertools | 17 | import itertools |
| 17 | import os | 18 | import os |
| 18 | import re | 19 | import re |
| @@ -306,8 +307,9 @@ class XmlManifest(object): | |||
| 306 | 307 | ||
| 307 | local = os.path.join(self.repodir, LOCAL_MANIFEST_NAME) | 308 | local = os.path.join(self.repodir, LOCAL_MANIFEST_NAME) |
| 308 | if os.path.exists(local): | 309 | if os.path.exists(local): |
| 309 | print >>sys.stderr, 'warning: %s is deprecated; put local manifests in %s instead' % \ | 310 | print('warning: %s is deprecated; put local manifests in %s instead' |
| 310 | (LOCAL_MANIFEST_NAME, LOCAL_MANIFESTS_DIR_NAME) | 311 | % (LOCAL_MANIFEST_NAME, LOCAL_MANIFESTS_DIR_NAME), |
| 312 | file=sys.stderr) | ||
| 311 | nodes.append(self._ParseManifestXml(local, self.repodir)) | 313 | nodes.append(self._ParseManifestXml(local, self.repodir)) |
| 312 | 314 | ||
| 313 | local_dir = os.path.abspath(os.path.join(self.repodir, LOCAL_MANIFESTS_DIR_NAME)) | 315 | local_dir = os.path.abspath(os.path.join(self.repodir, LOCAL_MANIFESTS_DIR_NAME)) |
| @@ -317,7 +319,7 @@ class XmlManifest(object): | |||
| 317 | try: | 319 | try: |
| 318 | nodes.append(self._ParseManifestXml(local_file, self.repodir)) | 320 | nodes.append(self._ParseManifestXml(local_file, self.repodir)) |
| 319 | except ManifestParseError as e: | 321 | except ManifestParseError as e: |
| 320 | print >>sys.stderr, '%s' % str(e) | 322 | print('%s' % str(e), file=sys.stderr) |
| 321 | except OSError: | 323 | except OSError: |
| 322 | pass | 324 | pass |
| 323 | 325 | ||
