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 ( 094cb0...b11aa0 )
by Benjamin
01:16
created

SpeedOfPi   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 26
rs 10
wmc 9

8 Methods

Rating   Name   Duplication   Size   Complexity  
A create_nodes() 0 1 1
A set_config() 0 1 1
A get_config() 0 1 1
A loop() 0 1 1
A single_player() 0 1 1
A __init__() 0 2 1
A multi_player() 0 1 1
A update() 0 9 2
1
import os
2
import time
3
import smbus
4
import yaml
5
from bin.updater import Updater
6
7
8
class SpeedOfPi(object):
9
10
    def __init__(self):
11
        bus = smbus.SMBus(1)
12
13
    def create_nodes(self): pass
14
15
    def get_config(self): pass
16
17
    def set_config(self): pass
18
19
    def update(self):
20
        updater = Updater()
21
        needs_update = updater.check()
22
        if needs_update:
23
            print("There is an update")
24
            print("Downloading update now")
25
            updater.update()
26
        else:
27
            print("You are up to date!")
28
29
    def multi_player(self): pass
30
31
    def single_player(self): pass
32
33
    def loop(self): pass
34
35