Skip to content

Commit 93029a1

Browse files
author
Luiko Czub
committed
separate file for class TestLinkError
#1
1 parent 9221e87 commit 93029a1

File tree

3 files changed

+24
-13
lines changed

3 files changed

+24
-13
lines changed

src/testlink/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
#! /usr/bin/python
22
# -*- coding: UTF-8 -*-
33

4-
# Copyright 2012 ??? , ???
4+
# Copyright 2012 TestLink-API-Python-client developers
55
#
66
# Licensed under ???
7-
#
7+
# see https://github.com/orenault/TestLink-API-Python-client/issues/4
88

9-
from .testlink import TestLinkErrors, TestLinkAPIClient, TestLink
9+
10+
from .testlinkerrors import TestLinkErrors
11+
from .testlink import TestLinkAPIClient, TestLink
1012
from .testlinkhelper import TestLinkHelper

src/testlink/testlink.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,7 @@
1313
import sys
1414
from datetime import date
1515
from testlinkhelper import TestLinkHelper
16-
17-
class TestLinkErrors(Exception):
18-
""" Basic error handler
19-
Return message pass as argument
20-
"""
21-
def __init__(self, msg):
22-
self.__msg = msg
23-
24-
def __str__(self):
25-
return self.__msg
16+
from testlinkerrors import TestLinkErrors
2617

2718
class TestLinkAPIClient(object):
2819

src/testlink/testlinkerrors.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#! /usr/bin/python
2+
# -*- coding: UTF-8 -*-
3+
4+
# Copyright 2012 pade (Paul Dassier), TestLink-API-Python-client developers
5+
#
6+
# Licensed under ???
7+
# see https://github.com/orenault/TestLink-API-Python-client/issues/4
8+
9+
class TestLinkErrors(Exception):
10+
""" Basic error handler
11+
Return message pass as argument
12+
"""
13+
def __init__(self, msg):
14+
self.__msg = msg
15+
16+
def __str__(self):
17+
return self.__msg
18+

0 commit comments

Comments
 (0)