Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1:/tmp/cvs-serv7879

Modified Files:
        plugin.py 
Log Message:
do not eval the args

Index: plugin.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/plugin.py,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** plugin.py   19 Sep 2003 18:57:43 -0000      1.42
--- plugin.py   20 Sep 2003 09:42:12 -0000      1.43
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.43  2003/09/20 09:42:12  dischi
+ # do not eval the args
+ #
  # Revision 1.42  2003/09/19 18:57:43  dischi
  # fixed TRUE/FALSE problems
***************
*** 381,388 ****
              
          exec('import %s' % module)
!         if args:
!             p = eval('%s%s' % (object, str(args)))
          else:
!             p = eval('%s()' % object)
  
          if not hasattr(p, '_type'):
--- 384,396 ----
              
          exec('import %s' % module)
!         if not args:
!             p = eval(object)()
!         elif isinstance(args, list) or isinstance(args, tuple):
!             paramlist = 'args[0]'
!             for i in range(1, len(args)):
!                 paramlist += ',args[%s]' % i
!             p = eval('%s(%s)' % (object, paramlist))
          else:
!             p = eval(object)(args)
  
          if not hasattr(p, '_type'):




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to