/usr/lib/python2.7/dist-packages/flickrapi/html.py is in python-flickrapi 2.1.2-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 83 84 85 | # -*- coding: utf-8 -*-
"""HTML code."""
auth_okay_html = """<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Python FlickrAPI authorization page</title>
<style type='text/css'>
html, body {
font-family: Ubuntu, Verdana, sans-serif;
font-size: 12pt;
background-color: white;
color: black;
}
section {
width: 500px;
margin-left: auto;
margin-right: auto;
border-radius: 10px;
box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.15);
}
article, h1 {
border: 3px solid #1750d2;
}
article {
border-radius: 0 0 10px 10px;
background-color: #fefefe;
}
h1 {
border-radius: 10px 10px 0 0;
margin-top: 50px;
margin-bottom: 0;
text-align: center;
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
font-size: 200%;
background-color: #1750d2;
color: white;
}
p {
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
margin: 30px 30px 10px 30px;
}
p.note {
font-size: 70%;
color: #888;
}
p.note a:visited, p.note a:link {
color: #888;
}
</style>
</head>
<body>
<section>
<h1>Flickr Authorization</h1>
<article>
<p>Authorization of the application with Flickr was successful.
You can now <strong>close this browser window</strong>, and return to the application.</p>
<p class='note'>Powered by
<a href='http://stuvel.eu/flickrapi'>Python FlickrAPI</a>, by Sybren A. Stüvel.</p>
</article>
</section>
</body>
</html>
"""
import six
if six.PY3:
auth_okay_html = auth_okay_html.encode('utf-8')
|