[PATCH 1 of 2 Cubicweb] Fix SyntaxError: Missing parentheses in call to 'print'

Nsukami Patrick ptrck at nskm.xyz
Fri Jan 3 18:04:58 CET 2020


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1578069717 0
#      Fri Jan 03 16:41:57 2020 +0000
# Node ID a72c89e9ab363dba57434692ebcece975cffcc53
# Parent  01ad69f0e9ce264c7b90552583b25496ca0c8002
Fix SyntaxError: Missing parentheses in call to 'print'

diff --git a/cubicweb/web/views/facets.py b/cubicweb/web/views/facets.py
--- a/cubicweb/web/views/facets.py
+++ b/cubicweb/web/views/facets.py
@@ -351,7 +351,7 @@
 
 class AttributeChooserWidget(facetbase.FacetVocabularyWidget):
     def _render_facet_values(self, w, overflow):
-        print self.items
+        print(self.items)
         for value, label, selected in self.items:
             if value is None:
                 continue
@@ -394,7 +394,7 @@
 
     def get_selected(self):
         # must check for selected vars in self.rqlst
-        print frozenset(int(eid) for eid in self._cw.list_form_param(self.__regid__))
+        print(frozenset(int(eid) for eid in self._cw.list_form_param(self.__regid__)))
         return frozenset(int(eid) for eid in self._cw.list_form_param(self.__regid__))
 
     @property




More information about the cubicweb-devel mailing list