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.update()   A

Complexity

Conditions 2

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
c 0
b 0
f 0
dl 0
loc 9
rs 9.6666
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