Skip to content

Commit aad8e82

Browse files
committed
Change _ = to _discard = as _ is the translation service global
Apparently I can't read: from roundup.i18n import _ gah.
1 parent ac505fc commit aad8e82

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

roundup/rest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,9 @@ def get_collection(self, class_name, input):
851851
raise UsageError("Field %s is not valid for %s class." %
852852
(p, class_name))
853853
# Call this for the side effect of validating the key
854-
_ = self.transitive_props(class_name, [ key ])
854+
# use _discard as _ is apparently a global for the translation
855+
# service.
856+
_discard = self.transitive_props(class_name, [ key ])
855857
# We drop properties without search permission silently
856858
# This reflects the current behavior of other roundup
857859
# interfaces

0 commit comments

Comments
 (0)