summaryrefslogtreecommitdiff
path: root/fastimport/processors/query_processor.py
diff options
context:
space:
mode:
Diffstat (limited to 'fastimport/processors/query_processor.py')
-rw-r--r--fastimport/processors/query_processor.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/fastimport/processors/query_processor.py b/fastimport/processors/query_processor.py
index c2e750f..b9dab70 100644
--- a/fastimport/processors/query_processor.py
+++ b/fastimport/processors/query_processor.py
@@ -14,6 +14,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Import processor that queries the input (and doesn't import)."""
+from __future__ import print_function
from fastimport import (
@@ -54,13 +55,13 @@ class QueryProcessor(processor.ImportProcessor):
return
if self.interesting_commit and cmd.name == 'commit':
if cmd.mark == self.interesting_commit:
- print cmd.to_string()
+ print(cmd.to_string())
self._finished = True
return
- if self.parsed_params.has_key(cmd.name):
+ if cmd.name in self.parsed_params:
fields = self.parsed_params[cmd.name]
str = cmd.dump_str(fields, self.parsed_params, self.verbose)
- print "%s" % (str,)
+ print("%s" % (str,))
def progress_handler(self, cmd):
"""Process a ProgressCommand."""