Skip to content
Permalink
Browse files

Use correct __safe_string_wrapper in object_wrapper

  • Loading branch information
dannon committed Mar 4, 2015
1 parent 318376f commit ab6f13e6f11d86349960edd151aa555bc0fdb34f
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/galaxy/util/object_wrapper.py
@@ -378,19 +378,19 @@ def __rpow__( self, other ):
# Do not implement in-place operands

def __neg__( self ):
return __safe_string_wrapper_function__( -self.unsanitized )
return self.__safe_string_wrapper_function__( -self.unsanitized )

def __pos__( self ):
return __safe_string_wrapper_function__( +self.unsanitized )
return self.__safe_string_wrapper_function__( +self.unsanitized )

def __abs__( self ):
return __safe_string_wrapper_function__( abs( self.unsanitized ) )
return self.__safe_string_wrapper_function__( abs( self.unsanitized ) )

def __invert__( self ):
return __safe_string_wrapper_function__( ~self.unsanitized )
return self.__safe_string_wrapper_function__( ~self.unsanitized )

def __complex__( self ):
return __safe_string_wrapper_function__( complex( self.unsanitized ) )
return self.__safe_string_wrapper_function__( complex( self.unsanitized ) )

def __int__( self ):
return int( self.unsanitized )

0 comments on commit ab6f13e

Please sign in to comment.
You can’t perform that action at this time.