Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ds4drv/actions/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def load_options(self, options):
if joystick.device.device:
self.logger.info("Created devices {0} (joystick) "
"{1} (evdev) ", joystick.joystick_dev,
joystick.device.device.fn)
joystick.device.device.fd)
else:
joystick = None

Expand Down
4 changes: 2 additions & 2 deletions ds4drv/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def add_arguments(self, actions):
controllopt = parser.add_argument_group("controller options")


class Config(configparser.SafeConfigParser):
class Config(configparser.ConfigParser):
def load(self, filename):
self.read([filename])

Expand All @@ -96,7 +96,7 @@ def section(self, section, key_type=str, value_type=str):
return {}

def sections(self, prefix=None):
for section in configparser.SafeConfigParser.sections(self):
for section in configparser.ConfigParser.sections(self):
match = re.match(r"{0}:(.+)".format(prefix), section)
if match:
yield match.group(1), section
Expand Down