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
Pull Request — master (#3)
by Oleg
02:37
created

LoadScheduleCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 16
ccs 0
cts 6
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 8 1
1
"""
2
Enarksh
3
4
Copyright 2013-2016 Set Based IT Consultancy
5
6
Licence MIT
7
"""
8
# ----------------------------------------------------------------------------------------------------------------------
9
from cleo import Command
10
11
from enarksh.Util.LoadSchedule import LoadSchedule
12
from enarksh.style.EnarkshStyle import EnarkshStyle
13
14
15
# ----------------------------------------------------------------------------------------------------------------------
16
class LoadScheduleCommand(Command):
17
    """
18
    Loads the schedule.
19
    """
20
21
    name = 'load_schedule'
22
23
    # ------------------------------------------------------------------------------------------------------------------
24
    def handle(self):
25
        """
26
        Executes the load schedule command.
27
        """
28
        self._io = EnarkshStyle(self.input, self.output)
0 ignored issues
show
Coding Style introduced by
The attribute _io was defined outside __init__.

It is generally a good practice to initialize all attributes to default values in the __init__ method:

class Foo:
    def __init__(self, x=None):
        self.x = x
Loading history...
29
30
        reader = LoadSchedule()
31
        reader.main()
32
33
# ----------------------------------------------------------------------------------------------------------------------
34