GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( d45b0a...2e6b2b )
by dup
02:05
created

common.print_project_version()   A

Complexity

Conditions 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 6
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nop 2
crap 1
1
#!/usr/bin/env python
2
# -*- coding: utf8 -*-
3
#
4
#  versions.py : checks releases and versions of programs through RSS
5
#                or Atom feeds and tells you
6
#
7
#  (C) Copyright 2016 - 2018 Olivier Delhomme
8
#  e-mail : [email protected]
9
#
10
#  This program is free software; you can redistribute it and/or modify
11
#  it under the terms of the GNU General Public License as published by
12
#  the Free Software Foundation; either version 3, or (at your option)
13
#  any later version.
14
#
15
#  This program is distributed in the hope that it will be useful,
16
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
17
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
#  GNU General Public License for more details.
19
#
20
#  You should have received a copy of the GNU General Public License
21
#  along with this program; if not, write to the Free Software Foundation,
22
#  Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
#
24 1
import codecs
25 1
import sys
26 1
import locale
27 1
import argparse
28 1
import os
29 1
import re
30 1
import errno
31 1
import time
32 1
import doctest
33 1
import feedparser
34 1
import yaml
35 1
import operator
36
37
38
39
40 1
def print_project_version(project, version):
41
    """
42
    Prints to the standard output project name and it's version.
43
    """
44
45 1
    print(u'{} {}'.format(project, version))
46
47
# End of print_project_version() function
48
49
50 1
def print_debug(debug, message):
51
    """
52
    Prints 'message' if debug mode is True
53
    """
54
55 1
    if debug:
56 1
        print(u'{}'.format(message))
57
58
# End of print_debug() function
59