提交 2e1f709e 编写于 作者: C cuixucui

Code specification rectification

上级 bebdbba4
......@@ -23,7 +23,7 @@ except ImportError:
from urllib2 import urlopen, Request, HTTPError
class Client(object):
class Client:
"""
upload client
"""
......
......@@ -16,7 +16,7 @@ import sys
import readline
class CommandUI(object):
class CommandUI:
"""
Command user interface selection
"""
......
......@@ -29,7 +29,7 @@ from .reboot import Reboot
from .client import Client
class EulerCertification(object):
class EulerCertification():
"""
Main program of oec-hardware
"""
......
......@@ -34,7 +34,7 @@ def filter_char(string):
return filtered
class CertDevice(object):
class CertDevice:
"""
Certified device
"""
......@@ -80,7 +80,7 @@ class CertDevice(object):
return self.devices
class Device(object):
class Device:
"""
get device properties
"""
......
......@@ -21,7 +21,7 @@ from .sysinfo import SysInfo
from .env import CertEnv
class Document(object):
class Document():
"""
Read and write documents
"""
......@@ -168,7 +168,7 @@ class FactoryDocument(Document):
return factory
class ConfigFile(object):
class ConfigFile:
"""
Get parameters from configuration file
"""
......
......@@ -13,7 +13,7 @@
# Create: 2020-04-01
class CertEnv(object):
class CertEnv:
"""
Certification file path
"""
......
......@@ -66,7 +66,7 @@ class Log(object):
self.log = None
class Logger(object):
class Logger():
"""
Output results to file
"""
......
......@@ -19,7 +19,7 @@ from .env import CertEnv
from .command import Command, CertCommandError
class Reboot(object):
class Reboot:
"""
Special for restart tasks, so that the test can be continued after the machine is restarted
"""
......
......@@ -16,7 +16,7 @@ import os
import re
class SysInfo(object):
class SysInfo:
"""
Get system information
"""
......
......@@ -13,7 +13,7 @@
# Create: 2020-04-01
class Test(object):
class Test:
"""
Test set template
"""
......
......@@ -20,7 +20,7 @@ from hwcompatible.test import Test
from hwcompatible.command import Command
class CPU(object):
class CPU:
def __init__(self):
self.cpu = None
self.nums = None
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册