Package: pandas / 1.1.5+dfsg-2

deb_disable_googleanalytics.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
Author: Yaroslav Halchenko <debian@onerussian.com>
        Andreas Tille <tille@debian.org>
        Rebecca N. Palmer <rebecca_palmer@zoho.com>
Last-Update: Mon, 23 Oct 2017 08:55:28 +0200
Description: Avoid privacy breach by Google Analytics
Forwarded: not-needed

--- a/pandas/tests/io/data/html/spam.html
+++ b/pandas/tests/io/data/html/spam.html
@@ -27,45 +27,9 @@
 
 <link rel="stylesheet" href="/ndb/static/css/main.css" />
 
-      	<script type="text/JavaScript">
-		 var _gaq = _gaq || [];
-		 // NAL
-		  _gaq.push(['_setAccount', 'UA-28627214-1']);
-		  _gaq.push(['_setDomainName', 'nal.usda.gov']);
-		  _gaq.push(['_setAllowLinker', true]);
-		  _gaq.push(['_trackPageview']);
-		 //
-		// _gaq.push(['_setAccount', 'UA-3876418-1']);
-		//  _gaq.push(['_trackPageview']);
-		  // for NDB
-		  _gaq.push(['_setAccount', 'UA-36442725-1']);
-		  _gaq.push(['_trackPageview']);
-			// USDA servers
-		  _gaq.push(['_setAccount', 'UA-466807-3']);
-		  _gaq.push(['_setDomainName', 'usda.gov']);
-		  _gaq.push(['_setAllowLinker', true]);
-		  _gaq.push(['_trackPageview']);
-		  //
-		  _gaq.push(['a._setAccount', 'UA-27627304-18']);
-		  _gaq.push(['a._setDomainName', 'usda.gov']);
-		  _gaq.push(['a._setAllowLinker', true]);
-		  _gaq.push(['a._trackPageview']);
-			//
-		  _gaq.push(['b._setAccount', 'UA-27627304-1']);
-		  _gaq.push(['b._setDomainName', 'usda.gov']);
-		  _gaq.push(['b._setAllowLinker', true]);
-		  _gaq.push(['b._trackPageview']);
-
-		  (function() {
-		    var ga = document.createElement('script'); ga.type =
-		'text/javascript'; ga.async = true;
-		    ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
-		'http://www') + '.google-analytics.com/ga.js';
-		    var s = document.getElementsByTagName('script')[0];
-		s.parentNode.insertBefore(ga, s);
-		  })();
-	</script>
-
+<!-- google analytics snippet was completely removed by Debian maintainers.
+     See http://lintian.debian.org/tags/privacy-breach-google-adsense.html
+     for more information -->
 
 
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
@@ -794,4 +758,4 @@ handler: function() {this.cancel();},
 			&nbsp;&nbsp;Software v.1.2.2
 		</div>
     </body>
-</html>
\ No newline at end of file
+</html>
--- a/web/pandas/_templates/layout.html
+++ b/web/pandas/_templates/layout.html
@@ -1,14 +1,6 @@
 <!DOCTYPE html>
 <html>
     <head>
-        <script type="text/javascript">
-            var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-27880019-2']); _gaq.push(['_trackPageview']);
-            (function() {
-                var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
-                ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
-                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
-            })();
-        </script>
         <title>pandas - Python Data Analysis Library</title>
         <meta charset="utf-8">
         <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">