[Python-modules-commits] [paste] 02/04: Import paste_2.0.2+dfsg.orig.tar.gz

Ondřej Nový onovy-guest at moszumanska.debian.org
Sat Mar 5 21:10:31 UTC 2016


This is an automated email from the git hooks/post-receive script.

onovy-guest pushed a commit to branch master
in repository paste.

commit ee1bf51e47766c6d99c9bdda5e1f07e39a2fb49b
Author: Ondřej Nový <novy at ondrej.org>
Date:   Sat Mar 5 22:05:46 2016 +0100

    Import paste_2.0.2+dfsg.orig.tar.gz
---
 paste/evalexception/media/MochiKit.packed.js | 7829 --------------------------
 1 file changed, 7829 deletions(-)

diff --git a/paste/evalexception/media/MochiKit.packed.js b/paste/evalexception/media/MochiKit.packed.js
deleted file mode 100644
index 15027d9..0000000
--- a/paste/evalexception/media/MochiKit.packed.js
+++ /dev/null
@@ -1,7829 +0,0 @@
-/***
-
-    MochiKit.MochiKit 1.4.2 : PACKED VERSION
-
-    THIS FILE IS AUTOMATICALLY GENERATED.  If creating patches, please
-    diff against the source tree, not this file.
-
-    See <http://mochikit.com/> for documentation, downloads, license, etc.
-
-    (c) 2005 Bob Ippolito.  All rights Reserved.
-
-***/
-
-if(typeof (dojo)!="undefined"){
-dojo.provide("MochiKit.Base");
-}
-if(typeof (MochiKit)=="undefined"){
-MochiKit={};
-}
-if(typeof (MochiKit.Base)=="undefined"){
-MochiKit.Base={};
-}
-if(typeof (MochiKit.__export__)=="undefined"){
-MochiKit.__export__=(MochiKit.__compat__||(typeof (JSAN)=="undefined"&&typeof (dojo)=="undefined"));
-}
-MochiKit.Base.VERSION="1.4.2";
-MochiKit.Base.NAME="MochiKit.Base";
-MochiKit.Base.update=function(_1,_2){
-if(_1===null||_1===undefined){
-_1={};
-}
-for(var i=1;i<arguments.length;i++){
-var o=arguments[i];
-if(typeof (o)!="undefined"&&o!==null){
-for(var k in o){
-_1[k]=o[k];
-}
-}
-}
-return _1;
-};
-MochiKit.Base.update(MochiKit.Base,{__repr__:function(){
-return "["+this.NAME+" "+this.VERSION+"]";
-},toString:function(){
-return this.__repr__();
-},camelize:function(_6){
-var _7=_6.split("-");
-var cc=_7[0];
-for(var i=1;i<_7.length;i++){
-cc+=_7[i].charAt(0).toUpperCase()+_7[i].substring(1);
-}
-return cc;
-},counter:function(n){
-if(arguments.length===0){
-n=1;
-}
-return function(){
-return n++;
-};
-},clone:function(_b){
-var me=arguments.callee;
-if(arguments.length==1){
-me.prototype=_b;
-return new me();
-}
-},_deps:function(_d,_e){
-if(!(_d in MochiKit)){
-MochiKit[_d]={};
-}
-if(typeof (dojo)!="undefined"){
-dojo.provide("MochiKit."+_d);
-}
-for(var i=0;i<_e.length;i++){
-if(typeof (dojo)!="undefined"){
-dojo.require("MochiKit."+_e[i]);
-}
-if(typeof (JSAN)!="undefined"){
-JSAN.use("MochiKit."+_e[i],[]);
-}
-if(!(_e[i] in MochiKit)){
-throw "MochiKit."+_d+" depends on MochiKit."+_e[i]+"!";
-}
-}
-},_flattenArray:function(res,lst){
-for(var i=0;i<lst.length;i++){
-var o=lst[i];
-if(o instanceof Array){
-arguments.callee(res,o);
-}else{
-res.push(o);
-}
-}
-return res;
-},flattenArray:function(lst){
-return MochiKit.Base._flattenArray([],lst);
-},flattenArguments:function(lst){
-var res=[];
-var m=MochiKit.Base;
-var _18=m.extend(null,arguments);
-while(_18.length){
-var o=_18.shift();
-if(o&&typeof (o)=="object"&&typeof (o.length)=="number"){
-for(var i=o.length-1;i>=0;i--){
-_18.unshift(o[i]);
-}
-}else{
-res.push(o);
-}
-}
-return res;
-},extend:function(_1b,obj,_1d){
-if(!_1d){
-_1d=0;
-}
-if(obj){
-var l=obj.length;
-if(typeof (l)!="number"){
-if(typeof (MochiKit.Iter)!="undefined"){
-obj=MochiKit.Iter.list(obj);
-l=obj.length;
-}else{
-throw new TypeError("Argument not an array-like and MochiKit.Iter not present");
-}
-}
-if(!_1b){
-_1b=[];
-}
-for(var i=_1d;i<l;i++){
-_1b.push(obj[i]);
-}
-}
-return _1b;
-},updatetree:function(_20,obj){
-if(_20===null||_20===undefined){
-_20={};
-}
-for(var i=1;i<arguments.length;i++){
-var o=arguments[i];
-if(typeof (o)!="undefined"&&o!==null){
-for(var k in o){
-var v=o[k];
-if(typeof (_20[k])=="object"&&typeof (v)=="object"){
-arguments.callee(_20[k],v);
-}else{
-_20[k]=v;
-}
-}
-}
-}
-return _20;
-},setdefault:function(_26,obj){
-if(_26===null||_26===undefined){
-_26={};
-}
-for(var i=1;i<arguments.length;i++){
-var o=arguments[i];
-for(var k in o){
-if(!(k in _26)){
-_26[k]=o[k];
-}
-}
-}
-return _26;
-},keys:function(obj){
-var _2c=[];
-for(var _2d in obj){
-_2c.push(_2d);
-}
-return _2c;
-},values:function(obj){
-var _2f=[];
-for(var _30 in obj){
-_2f.push(obj[_30]);
-}
-return _2f;
-},items:function(obj){
-var _32=[];
-var e;
-for(var _34 in obj){
-var v;
-try{
-v=obj[_34];
-}
-catch(e){
-continue;
-}
-_32.push([_34,v]);
-}
-return _32;
-},_newNamedError:function(_36,_37,_38){
-_38.prototype=new MochiKit.Base.NamedError(_36.NAME+"."+_37);
-_36[_37]=_38;
-},operator:{truth:function(a){
-return !!a;
-},lognot:function(a){
-return !a;
-},identity:function(a){
-return a;
-},not:function(a){
-return ~a;
-},neg:function(a){
-return -a;
-},add:function(a,b){
-return a+b;
-},sub:function(a,b){
-return a-b;
-},div:function(a,b){
-return a/b;
-},mod:function(a,b){
-return a%b;
-},mul:function(a,b){
-return a*b;
-},and:function(a,b){
-return a&b;
-},or:function(a,b){
-return a|b;
-},xor:function(a,b){
-return a^b;
-},lshift:function(a,b){
-return a<<b;
-},rshift:function(a,b){
-return a>>b;
-},zrshift:function(a,b){
-return a>>>b;
-},eq:function(a,b){
-return a==b;
-},ne:function(a,b){
-return a!=b;
-},gt:function(a,b){
-return a>b;
-},ge:function(a,b){
-return a>=b;
-},lt:function(a,b){
-return a<b;
-},le:function(a,b){
-return a<=b;
-},seq:function(a,b){
-return a===b;
-},sne:function(a,b){
-return a!==b;
-},ceq:function(a,b){
-return MochiKit.Base.compare(a,b)===0;
-},cne:function(a,b){
-return MochiKit.Base.compare(a,b)!==0;
-},cgt:function(a,b){
-return MochiKit.Base.compare(a,b)==1;
-},cge:function(a,b){
-return MochiKit.Base.compare(a,b)!=-1;
-},clt:function(a,b){
-return MochiKit.Base.compare(a,b)==-1;
-},cle:function(a,b){
-return MochiKit.Base.compare(a,b)!=1;
-},logand:function(a,b){
-return a&&b;
-},logor:function(a,b){
-return a||b;
-},contains:function(a,b){
-return b in a;
-}},forwardCall:function(_76){
-return function(){
-return this[_76].apply(this,arguments);
-};
-},itemgetter:function(_77){
-return function(arg){
-return arg[_77];
-};
-},typeMatcher:function(){
-var _79={};
-for(var i=0;i<arguments.length;i++){
-var typ=arguments[i];
-_79[typ]=typ;
-}
-return function(){
-for(var i=0;i<arguments.length;i++){
-if(!(typeof (arguments[i]) in _79)){
-return false;
-}
-}
-return true;
-};
-},isNull:function(){
-for(var i=0;i<arguments.length;i++){
-if(arguments[i]!==null){
-return false;
-}
-}
-return true;
-},isUndefinedOrNull:function(){
-for(var i=0;i<arguments.length;i++){
-var o=arguments[i];
-if(!(typeof (o)=="undefined"||o===null)){
-return false;
-}
-}
-return true;
-},isEmpty:function(obj){
-return !MochiKit.Base.isNotEmpty.apply(this,arguments);
-},isNotEmpty:function(obj){
-for(var i=0;i<arguments.length;i++){
-var o=arguments[i];
-if(!(o&&o.length)){
-return false;
-}
-}
-return true;
-},isArrayLike:function(){
-for(var i=0;i<arguments.length;i++){
-var o=arguments[i];
-var typ=typeof (o);
-if((typ!="object"&&!(typ=="function"&&typeof (o.item)=="function"))||o===null||typeof (o.length)!="number"||o.nodeType===3||o.nodeType===4){
-return false;
-}
-}
-return true;
-},isDateLike:function(){
-for(var i=0;i<arguments.length;i++){
-var o=arguments[i];
-if(typeof (o)!="object"||o===null||typeof (o.getTime)!="function"){
-return false;
-}
-}
-return true;
-},xmap:function(fn){
-if(fn===null){
-return MochiKit.Base.extend(null,arguments,1);
-}
-var _8a=[];
-for(var i=1;i<arguments.length;i++){
-_8a.push(fn(arguments[i]));
-}
-return _8a;
-},map:function(fn,lst){
-var m=MochiKit.Base;
-var itr=MochiKit.Iter;
-var _90=m.isArrayLike;
-if(arguments.length<=2){
-if(!_90(lst)){
-if(itr){
-lst=itr.list(lst);
-if(fn===null){
-return lst;
-}
-}else{
-throw new TypeError("Argument not an array-like and MochiKit.Iter not present");
-}
-}
-if(fn===null){
-return m.extend(null,lst);
-}
-var _91=[];
-for(var i=0;i<lst.length;i++){
-_91.push(fn(lst[i]));
-}
-return _91;
-}else{
-if(fn===null){
-fn=Array;
-}
-var _93=null;
-for(i=1;i<arguments.length;i++){
-if(!_90(arguments[i])){
-if(itr){
-return itr.list(itr.imap.apply(null,arguments));
-}else{
-throw new TypeError("Argument not an array-like and MochiKit.Iter not present");
-}
-}
-var l=arguments[i].length;
-if(_93===null||_93>l){
-_93=l;
-}
-}
-_91=[];
-for(i=0;i<_93;i++){
-var _95=[];
-for(var j=1;j<arguments.length;j++){
-_95.push(arguments[j][i]);
-}
-_91.push(fn.apply(this,_95));
-}
-return _91;
-}
-},xfilter:function(fn){
-var _98=[];
-if(fn===null){
-fn=MochiKit.Base.operator.truth;
-}
-for(var i=1;i<arguments.length;i++){
-var o=arguments[i];
-if(fn(o)){
-_98.push(o);
-}
-}
-return _98;
-},filter:function(fn,lst,_9d){
-var _9e=[];
-var m=MochiKit.Base;
-if(!m.isArrayLike(lst)){
-if(MochiKit.Iter){
-lst=MochiKit.Iter.list(lst);
-}else{
-throw new TypeError("Argument not an array-like and MochiKit.Iter not present");
-}
-}
-if(fn===null){
-fn=m.operator.truth;
-}
-if(typeof (Array.prototype.filter)=="function"){
-return Array.prototype.filter.call(lst,fn,_9d);
-}else{
-if(typeof (_9d)=="undefined"||_9d===null){
-for(var i=0;i<lst.length;i++){
-var o=lst[i];
-if(fn(o)){
-_9e.push(o);
-}
-}
-}else{
-for(i=0;i<lst.length;i++){
-o=lst[i];
-if(fn.call(_9d,o)){
-_9e.push(o);
-}
-}
-}
-}
-return _9e;
-},_wrapDumbFunction:function(_a2){
-return function(){
-switch(arguments.length){
-case 0:
-return _a2();
-case 1:
-return _a2(arguments[0]);
-case 2:
-return _a2(arguments[0],arguments[1]);
-case 3:
-return _a2(arguments[0],arguments[1],arguments[2]);
-}
-var _a3=[];
-for(var i=0;i<arguments.length;i++){
-_a3.push("arguments["+i+"]");
-}
-return eval("(func("+_a3.join(",")+"))");
-};
-},methodcaller:function(_a5){
-var _a6=MochiKit.Base.extend(null,arguments,1);
-if(typeof (_a5)=="function"){
-return function(obj){
-return _a5.apply(obj,_a6);
-};
-}else{
-return function(obj){
-return obj[_a5].apply(obj,_a6);
-};
-}
-},method:function(_a9,_aa){
-var m=MochiKit.Base;
-return m.bind.apply(this,m.extend([_aa,_a9],arguments,2));
-},compose:function(f1,f2){
-var _ae=[];
-var m=MochiKit.Base;
-if(arguments.length===0){
-throw new TypeError("compose() requires at least one argument");
-}
-for(var i=0;i<arguments.length;i++){
-var fn=arguments[i];
-if(typeof (fn)!="function"){
-throw new TypeError(m.repr(fn)+" is not a function");
-}
-_ae.push(fn);
-}
-return function(){
-var _b2=arguments;
-for(var i=_ae.length-1;i>=0;i--){
-_b2=[_ae[i].apply(this,_b2)];
-}
-return _b2[0];
-};
-},bind:function(_b4,_b5){
-if(typeof (_b4)=="string"){
-_b4=_b5[_b4];
-}
-var _b6=_b4.im_func;
-var _b7=_b4.im_preargs;
-var _b8=_b4.im_self;
-var m=MochiKit.Base;
-if(typeof (_b4)=="function"&&typeof (_b4.apply)=="undefined"){
-_b4=m._wrapDumbFunction(_b4);
-}
-if(typeof (_b6)!="function"){
-_b6=_b4;
-}
-if(typeof (_b5)!="undefined"){
-_b8=_b5;
-}
-if(typeof (_b7)=="undefined"){
-_b7=[];
-}else{
-_b7=_b7.slice();
-}
-m.extend(_b7,arguments,2);
-var _ba=function(){
-var _bb=arguments;
-var me=arguments.callee;
-if(me.im_preargs.length>0){
-_bb=m.concat(me.im_preargs,_bb);
-}
-var _bd=me.im_self;
-if(!_bd){
-_bd=this;
-}
-return me.im_func.apply(_bd,_bb);
-};
-_ba.im_self=_b8;
-_ba.im_func=_b6;
-_ba.im_preargs=_b7;
-return _ba;
-},bindLate:function(_be,_bf){
-var m=MochiKit.Base;
-if(typeof (_be)!="string"){
-return m.bind.apply(this,arguments);
-}
-var _c1=m.extend([],arguments,2);
-var _c2=function(){
-var _c3=arguments;
-var me=arguments.callee;
-if(me.im_preargs.length>0){
-_c3=m.concat(me.im_preargs,_c3);
-}
-var _c5=me.im_self;
-if(!_c5){
-_c5=this;
-}
-return _c5[me.im_func].apply(_c5,_c3);
-};
-_c2.im_self=_bf;
-_c2.im_func=_be;
-_c2.im_preargs=_c1;
-return _c2;
-},bindMethods:function(_c6){
-var _c7=MochiKit.Base.bind;
-for(var k in _c6){
-var _c9=_c6[k];
-if(typeof (_c9)=="function"){
-_c6[k]=_c7(_c9,_c6);
-}
-}
-},registerComparator:function(_ca,_cb,_cc,_cd){
-MochiKit.Base.comparatorRegistry.register(_ca,_cb,_cc,_cd);
-},_primitives:{"boolean":true,"string":true,"number":true},compare:function(a,b){
-if(a==b){
-return 0;
-}
-var _d0=(typeof (a)=="undefined"||a===null);
-var _d1=(typeof (b)=="undefined"||b===null);
-if(_d0&&_d1){
-return 0;
-}else{
-if(_d0){
-return -1;
-}else{
-if(_d1){
-return 1;
-}
-}
-}
-var m=MochiKit.Base;
-var _d3=m._primitives;
-if(!(typeof (a) in _d3&&typeof (b) in _d3)){
-try{
-return m.comparatorRegistry.match(a,b);
-}
-catch(e){
-if(e!=m.NotFound){
-throw e;
-}
-}
-}
-if(a<b){
-return -1;
-}else{
-if(a>b){
-return 1;
-}
-}
-var _d4=m.repr;
-throw new TypeError(_d4(a)+" and "+_d4(b)+" can not be compared");
-},compareDateLike:function(a,b){
-return MochiKit.Base.compare(a.getTime(),b.getTime());
-},compareArrayLike:function(a,b){
-var _d9=MochiKit.Base.compare;
-var _da=a.length;
-var _db=0;
-if(_da>b.length){
-_db=1;
-_da=b.length;
-}else{
-if(_da<b.length){
-_db=-1;
-}
-}
-for(var i=0;i<_da;i++){
-var cmp=_d9(a[i],b[i]);
-if(cmp){
-return cmp;
-}
-}
-return _db;
-},registerRepr:function(_de,_df,_e0,_e1){
-MochiKit.Base.reprRegistry.register(_de,_df,_e0,_e1);
-},repr:function(o){
-if(typeof (o)=="undefined"){
-return "undefined";
-}else{
-if(o===null){
-return "null";
-}
-}
-try{
-if(typeof (o.__repr__)=="function"){
-return o.__repr__();
-}else{
-if(typeof (o.repr)=="function"&&o.repr!=arguments.callee){
-return o.repr();
-}
-}
-return MochiKit.Base.reprRegistry.match(o);
-}
-catch(e){
-if(typeof (o.NAME)=="string"&&(o.toString==Function.prototype.toString||o.toString==Object.prototype.toString)){
-return o.NAME;
-}
-}
-try{
-var _e3=(o+"");
-}
-catch(e){
-return "["+typeof (o)+"]";
-}
-if(typeof (o)=="function"){
-_e3=_e3.replace(/^\s+/,"").replace(/\s+/g," ");
-_e3=_e3.replace(/,(\S)/,", $1");
-var idx=_e3.indexOf("{");
-if(idx!=-1){
-_e3=_e3.substr(0,idx)+"{...}";
-}
-}
-return _e3;
-},reprArrayLike:function(o){
-var m=MochiKit.Base;
-return "["+m.map(m.repr,o).join(", ")+"]";
-},reprString:function(o){
-return ("\""+o.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\v]/g,"\\v").replace(/[\r]/g,"\\r");
-},reprNumber:function(o){
-return o+"";
-},registerJSON:function(_e9,_ea,_eb,_ec){
-MochiKit.Base.jsonRegistry.register(_e9,_ea,_eb,_ec);
-},evalJSON:function(){
-return eval("("+MochiKit.Base._filterJSON(arguments[0])+")");
-},_filterJSON:function(s){
-var m=s.match(/^\s*\/\*(.*)\*\/\s*$/);
-if(m){
-return m[1];
-}
-return s;
-},serializeJSON:function(o){
-var _f0=typeof (o);
-if(_f0=="number"||_f0=="boolean"){
-return o+"";
-}else{
-if(o===null){
-return "null";
-}else{
-if(_f0=="string"){
-var res="";
-for(var i=0;i<o.length;i++){
-var c=o.charAt(i);
-if(c=="\""){
-res+="\\\"";
-}else{
-if(c=="\\"){
-res+="\\\\";
-}else{
-if(c=="\b"){
-res+="\\b";
-}else{
-if(c=="\f"){
-res+="\\f";
-}else{
-if(c=="\n"){
-res+="\\n";
-}else{
-if(c=="\r"){
-res+="\\r";
-}else{
-if(c=="\t"){
-res+="\\t";
-}else{
-if(o.charCodeAt(i)<=31){
-var hex=o.charCodeAt(i).toString(16);
-if(hex.length<2){
-hex="0"+hex;
-}
-res+="\\u00"+hex.toUpperCase();
-}else{
-res+=c;
-}
-}
-}
-}
-}
-}
-}
-}
-}
-return "\""+res+"\"";
-}
-}
-}
-var me=arguments.callee;
-var _f6;
-if(typeof (o.__json__)=="function"){
-_f6=o.__json__();
-if(o!==_f6){
-return me(_f6);
-}
-}
-if(typeof (o.json)=="function"){
-_f6=o.json();
-if(o!==_f6){
-return me(_f6);
-}
-}
-if(_f0!="function"&&typeof (o.length)=="number"){
-var res=[];
-for(var i=0;i<o.length;i++){
-var val=me(o[i]);
-if(typeof (val)!="string"){
-continue;
-}
-res.push(val);
-}
-return "["+res.join(", ")+"]";
-}
-var m=MochiKit.Base;
-try{
-_f6=m.jsonRegistry.match(o);
-if(o!==_f6){
-return me(_f6);
-}
-}
-catch(e){
-if(e!=m.NotFound){
-throw e;
-}
-}
-if(_f0=="undefined"){
-throw new TypeError("undefined can not be serialized as JSON");
-}
-if(_f0=="function"){
-return null;
-}
-res=[];
-for(var k in o){
-var _fa;
-if(typeof (k)=="number"){
-_fa="\""+k+"\"";
-}else{
-if(typeof (k)=="string"){
-_fa=me(k);
-}else{
-continue;
-}
-}
-val=me(o[k]);
-if(typeof (val)!="string"){
-continue;
-}
-res.push(_fa+":"+val);
-}
-return "{"+res.join(", ")+"}";
-},objEqual:function(a,b){
-return (MochiKit.Base.compare(a,b)===0);
-},arrayEqual:function(_fd,arr){
-if(_fd.length!=arr.length){
-return false;
-}
-return (MochiKit.Base.compare(_fd,arr)===0);
-},concat:function(){
-var _ff=[];
-var _100=MochiKit.Base.extend;
-for(var i=0;i<arguments.length;i++){
-_100(_ff,arguments[i]);
-}
-return _ff;
-},keyComparator:function(key){
-var m=MochiKit.Base;
-var _104=m.compare;
-if(arguments.length==1){
-return function(a,b){
-return _104(a[key],b[key]);
-};
-}
-var _107=m.extend(null,arguments);
-return function(a,b){
-var rval=0;
-for(var i=0;(rval===0)&&(i<_107.length);i++){
-var key=_107[i];
-rval=_104(a[key],b[key]);
-}
-return rval;
-};
-},reverseKeyComparator:function(key){
-var _10e=MochiKit.Base.keyComparator.apply(this,arguments);
-return function(a,b){
-return _10e(b,a);
-};
-},partial:function(func){
-var m=MochiKit.Base;
-return m.bind.apply(this,m.extend([func,undefined],arguments,1));
-},listMinMax:function(_113,lst){
-if(lst.length===0){
-return null;
-}
-var cur=lst[0];
-var _116=MochiKit.Base.compare;
-for(var i=1;i<lst.length;i++){
-var o=lst[i];
-if(_116(o,cur)==_113){
-cur=o;
-}
-}
-return cur;
-},objMax:function(){
-return MochiKit.Base.listMinMax(1,arguments);
-},objMin:function(){
-return MochiKit.Base.listMinMax(-1,arguments);
-},findIdentical:function(lst,_11a,_11b,end){
-if(typeof (end)=="undefined"||end===null){
-end=lst.length;
-}
-if(typeof (_11b)=="undefined"||_11b===null){
-_11b=0;
-}
-for(var i=_11b;i<end;i++){
-if(lst[i]===_11a){
-return i;
-}
-}
-return -1;
-},mean:function(){
-var sum=0;
-var m=MochiKit.Base;
-var args=m.extend(null,arguments);
-var _121=args.length;
-while(args.length){
-var o=args.shift();
-if(o&&typeof (o)=="object"&&typeof (o.length)=="number"){
-_121+=o.length-1;
-for(var i=o.length-1;i>=0;i--){
-sum+=o[i];
-}
-}else{
-sum+=o;
-}
-}
-if(_121<=0){
-throw new TypeError("mean() requires at least one argument");
-}
-return sum/_121;
-},median:function(){
-var data=MochiKit.Base.flattenArguments(arguments);
-if(data.length===0){
-throw new TypeError("median() requires at least one argument");
-}
-data.sort(compare);
-if(data.length%2==0){
-var _125=data.length/2;
-return (data[_125]+data[_125-1])/2;
-}else{
-return data[(data.length-1)/2];
-}
-},findValue:function(lst,_127,_128,end){
-if(typeof (end)=="undefined"||end===null){
-end=lst.length;
-}
-if(typeof (_128)=="undefined"||_128===null){
-_128=0;
-}
-var cmp=MochiKit.Base.compare;
-for(var i=_128;i<end;i++){
-if(cmp(lst[i],_127)===0){
-return i;
-}
-}
-return -1;
-},nodeWalk:function(node,_12d){
-var _12e=[node];
-var _12f=MochiKit.Base.extend;
-while(_12e.length){
-var res=_12d(_12e.shift());
-if(res){
-_12f(_12e,res);
-}
-}
-},nameFunctions:function(_131){
-var base=_131.NAME;
-if(typeof (base)=="undefined"){
-base="";
-}else{
-base=base+".";
-}
-for(var name in _131){
-var o=_131[name];
-if(typeof (o)=="function"&&typeof (o.NAME)=="undefined"){
-try{
-o.NAME=base+name;
-}
-catch(e){
-}
-}
-}
-},queryString:function(_135,_136){
-if(typeof (MochiKit.DOM)!="undefined"&&arguments.length==1&&(typeof (_135)=="string"||(typeof (_135.nodeType)!="undefined"&&_135.nodeType>0))){
-var kv=MochiKit.DOM.formContents(_135);
-_135=kv[0];
-_136=kv[1];
-}else{
-if(arguments.length==1){
-if(typeof (_135.length)=="number"&&_135.length==2){
-return arguments.callee(_135[0],_135[1]);
-}
-var o=_135;
-_135=[];
-_136=[];
-for(var k in o){
-var v=o[k];
-if(typeof (v)=="function"){
-continue;
-}else{
-if(MochiKit.Base.isArrayLike(v)){
-for(var i=0;i<v.length;i++){
-_135.push(k);
-_136.push(v[i]);
-}
-}else{
-_135.push(k);
-_136.push(v);
-}
-}
-}
-}
-}
-var rval=[];
-var len=Math.min(_135.length,_136.length);
-var _13e=MochiKit.Base.urlEncode;
-for(var i=0;i<len;i++){
-v=_136[i];
-if(typeof (v)!="undefined"&&v!==null){
-rval.push(_13e(_135[i])+"="+_13e(v));
-}
-}
-return rval.join("&");
-},parseQueryString:function(_13f,_140){
-var qstr=(_13f.charAt(0)=="?")?_13f.substring(1):_13f;
-var _142=qstr.replace(/\+/g,"%20").split(/\&amp\;|\&\#38\;|\&#x26;|\&/);
-var o={};
-var _144;
-if(typeof (decodeURIComponent)!="undefined"){
-_144=decodeURIComponent;
-}else{
-_144=unescape;
-}
-if(_140){
-for(var i=0;i<_142.length;i++){
-var pair=_142[i].split("=");
-var name=_144(pair.shift());
-if(!name){
-continue;
-}
-var arr=o[name];
-if(!(arr instanceof Array)){
-arr=[];
-o[name]=arr;
... 6844 lines suppressed ...

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/paste.git



More information about the Python-modules-commits mailing list