Skip to content

Commit

Permalink
remove python-2 imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dswah committed Feb 8, 2024
1 parent c31b296 commit c89eece
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 24 deletions.
2 changes: 0 additions & 2 deletions pygam/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"""
GAM toolkit
"""

from __future__ import absolute_import
from importlib.metadata import version, PackageNotFoundError

from pygam.pygam import GAM
Expand Down
2 changes: 0 additions & 2 deletions pygam/callbacks.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"""
CallBacks
"""

from __future__ import absolute_import
from functools import wraps

import numpy as np
Expand Down
3 changes: 0 additions & 3 deletions pygam/core.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""
Core classes
"""

from __future__ import absolute_import

import numpy as np

from pygam.utils import round_to_n_decimal_places, flatten
Expand Down
2 changes: 0 additions & 2 deletions pygam/distributions.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"""
Distributions
"""

from __future__ import division, absolute_import
from functools import wraps
from abc import ABCMeta
from abc import abstractmethod
Expand Down
2 changes: 0 additions & 2 deletions pygam/links.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"""
Link functions
"""
from __future__ import division, absolute_import

import numpy as np

from pygam.core import Core
Expand Down
2 changes: 0 additions & 2 deletions pygam/pygam.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-

from __future__ import division, absolute_import
from collections import defaultdict
from collections import OrderedDict
from copy import deepcopy
Expand Down
1 change: 0 additions & 1 deletion pygam/terms.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""
Link functions
"""
from __future__ import division, absolute_import
from abc import ABCMeta
from abc import abstractmethod, abstractproperty
from collections import defaultdict
Expand Down
1 change: 0 additions & 1 deletion pygam/tests/test_terms.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

from copy import deepcopy

import numpy as np
Expand Down
8 changes: 1 addition & 7 deletions pygam/tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
# -*- coding: utf-8 -*-

from copy import deepcopy

try:
# py >= 3.3
from unittest.mock import patch
except ImportError:
# py < 3.3
from mock import patch
from mock import patch

import numpy as np
import pytest
Expand Down
2 changes: 0 additions & 2 deletions pygam/utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"""
Pygam utilities
"""

from __future__ import division
from copy import deepcopy
import numbers
import sys
Expand Down

0 comments on commit c89eece

Please sign in to comment.