# static.py

# class ClassGrades:
#
#     def __init__(self, grades):
#         self.grades = grades
#
#
#     @classmethod
#     def from_csv(cls, grade_csv_str):
#         grades = map(int, grade_csv_str.split(', '))
#         cls.validate(grades)
#         return cls(grades)
#
#
#     @staticmethod
#     def validate(grades):
#         for g in grades:
#             if g < 0 or g > 100:
#                 raise Exception()


# try:
#     # Try out some valid grades
#     class_grades_valid = ClassGrades.from_csv('90, 80, 85, 94, 70')
#     print('Got grades:', class_grades_valid.grades)
#
#     # Should fail with invalid grades
#     class_grades_invalid = ClassGrades.from_csv('92, -15, 99, 101, 77, 65, 100')
#     print(class_grades_invalid.grades)
# except:
#     print('Invalid!')

# def __str__(self):
#     return '/home/edwin'
#
# def __repr__(self):
#     return 'PoxyPath(/home/edwin)'


from device import Detect

a = Detect()
print(a.show_connection_active())

# static.py

# class ClassGrades:
#
#     def __init__(self, grades):
#         self.grades = grades
#
#
#     @classmethod
#     def from_csv(cls, grade_csv_str):
#         grades = map(int, grade_csv_str.split(', '))
#         cls.validate(grades)
#         return cls(grades)
#
#
#     @staticmethod
#     def validate(grades):
#         for g in grades:
#             if g < 0 or g > 100:
#                 raise Exception()


# try:
#     # Try out some valid grades
#     class_grades_valid = ClassGrades.from_csv('90, 80, 85, 94, 70')
#     print('Got grades:', class_grades_valid.grades)
#
#     # Should fail with invalid grades
#     class_grades_invalid = ClassGrades.from_csv('92, -15, 99, 101, 77, 65, 100')
#     print(class_grades_invalid.grades)
# except:
#     print('Invalid!')

# def __str__(self):
#     return '/home/edwin'
#
# def __repr__(self):
#     return 'PoxyPath(/home/edwin)'


from device import Detect

a = Detect()
print(a.show_connection_active())

# static.py # class ClassGrades: # #     def __init__(self, grades): #         self.grades = grades # # #     @classmethod #     def from_csv(cls, grade_csv_str): #         grades = map(int, grade_csv_str.split(', ')) #         cls.validate(grades) #         return cls(grades) # # #     @staticmethod #     def validate(grades): #         for g in grades: #             if g < 0 or g > 100: #                 raise Exception() # try: #     # Try out some valid grades #     class_grades_valid = ClassGrades.from_csv('90, 80, 85, 94, 70') #     print('Got grades:', class_grades_valid.grades) # #     # Should fail with invalid grades #     class_grades_invalid = ClassGrades.from_csv('92, -15, 99, 101, 77, 65, 100') #     print(class_grades_invalid.grades) # except: #     print('Invalid!') # def __str__(self): #     return '/home/edwin' # # def __repr__(self): #     return 'PoxyPath(/home/edwin)'