File: Kernel.py

package info (click to toggle)
python-digitalocean 1.16.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 912 kB
  • sloc: python: 4,961; makefile: 46
file content (13 lines) | stat: -rw-r--r-- 328 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
# -*- coding: utf-8 -*-
from .baseapi import BaseAPI


class Kernel(BaseAPI):
    def __init__(self, *args, **kwargs):
        self.name = ""
        self.id = ""
        self.version = ""
        super(Kernel, self).__init__(*args, **kwargs)

    def __str__(self):
        return "<Kernel: %s %s>" % (self.name, self.version)