Browse Source

inheriting object is no longer necessary in py3

pull/52/head
Tobias Perschon 5 years ago
parent
commit
1a6c2657e0
7 changed files with 7 additions and 7 deletions
  1. +1
    -1
      Adafruit_Video_Looper/directory.py
  2. +1
    -1
      Adafruit_Video_Looper/hello_video.py
  3. +1
    -1
      Adafruit_Video_Looper/model.py
  4. +1
    -1
      Adafruit_Video_Looper/omxplayer.py
  5. +1
    -1
      Adafruit_Video_Looper/usb_drive.py
  6. +1
    -1
      Adafruit_Video_Looper/usb_drive_mounter.py
  7. +1
    -1
      Adafruit_Video_Looper/video_looper.py

+ 1
- 1
Adafruit_Video_Looper/directory.py View File

@@ -1,7 +1,7 @@
# Copyright 2015 Adafruit Industries. # Copyright 2015 Adafruit Industries.
# Author: Tony DiCola # Author: Tony DiCola
# License: GNU GPLv2, see LICENSE.txt # License: GNU GPLv2, see LICENSE.txt
class DirectoryReader(object):
class DirectoryReader:


def __init__(self, config): def __init__(self, config):
"""Create an instance of a file reader that just reads a single """Create an instance of a file reader that just reads a single


+ 1
- 1
Adafruit_Video_Looper/hello_video.py View File

@@ -6,7 +6,7 @@ import subprocess
import time import time




class HelloVideoPlayer(object):
class HelloVideoPlayer:


def __init__(self, config): def __init__(self, config):
"""Create an instance of a video player that runs hello_video.bin in the """Create an instance of a video player that runs hello_video.bin in the


+ 1
- 1
Adafruit_Video_Looper/model.py View File

@@ -3,7 +3,7 @@
# License: GNU GPLv2, see LICENSE.txt # License: GNU GPLv2, see LICENSE.txt
import random import random


class Playlist(object):
class Playlist:
"""Representation of a playlist of movies.""" """Representation of a playlist of movies."""


def __init__(self, movies, is_random): def __init__(self, movies, is_random):


+ 1
- 1
Adafruit_Video_Looper/omxplayer.py View File

@@ -6,7 +6,7 @@ import subprocess
import time import time




class OMXPlayer(object):
class OMXPlayer:


def __init__(self, config): def __init__(self, config):
"""Create an instance of a video player that runs omxplayer in the """Create an instance of a video player that runs omxplayer in the


+ 1
- 1
Adafruit_Video_Looper/usb_drive.py View File

@@ -6,7 +6,7 @@ import glob
from .usb_drive_mounter import USBDriveMounter from .usb_drive_mounter import USBDriveMounter




class USBDriveReader(object):
class USBDriveReader:


def __init__(self, config): def __init__(self, config):
"""Create an instance of a file reader that uses the USB drive mounter """Create an instance of a file reader that uses the USB drive mounter


+ 1
- 1
Adafruit_Video_Looper/usb_drive_mounter.py View File

@@ -8,7 +8,7 @@ import time
import pyudev import pyudev




class USBDriveMounter(object):
class USBDriveMounter:
"""Service for automatically mounting attached USB drives.""" """Service for automatically mounting attached USB drives."""


def __init__(self, root='/mnt/usbdrive', readonly=False): def __init__(self, root='/mnt/usbdrive', readonly=False):


+ 1
- 1
Adafruit_Video_Looper/video_looper.py View File

@@ -38,7 +38,7 @@ from .model import Playlist
# - Future file readers and video players can be provided and referenced in the # - Future file readers and video players can be provided and referenced in the
# config to extend the video player use to read from different file sources # config to extend the video player use to read from different file sources
# or use different video players. # or use different video players.
class VideoLooper(object):
class VideoLooper:


def __init__(self, config_path): def __init__(self, config_path):
"""Create an instance of the main video looper application class. Must """Create an instance of the main video looper application class. Must


Loading…
Cancel
Save