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 ( 5e962d...d4663b )
by P.R.
03:14
created

EventActor.destroy()   A

Complexity

Conditions 2

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
c 1
b 0
f 0
dl 0
loc 9
ccs 4
cts 4
cp 1
crap 2
rs 9.6666
1
"""
2
Enarksh
3
4
Copyright 2013-2016 Set Based IT Consultancy
5
6
Licence MIT
7
"""
8 1
import weakref
9
10 1
from enarksh.event.Event import Event
11
12
13 1
class EventActor:
14
    """
15
    Parent class for classes that fire events and for classes that listen for events.
16
    """
17
18
    # ------------------------------------------------------------------------------------------------------------------
19 1
    def __init__(self):
20 1
        self.ref = weakref.ref(self, Event.event_controller.internal_unregister_listener_object_ref)
21 1
        """
22
        The weak reference to this event actor.
23
24
        :type: weakref
25
        """
26
27
# ----------------------------------------------------------------------------------------------------------------------
28