Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
with:
python-version: "3.10"
python-version: "3.11"
- name: Install dependencies
run: |
pip install -U pip
Expand Down
6 changes: 1 addition & 5 deletions netdiff/parsers/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
from urllib import parse as urlparse

import networkx
import requests
Expand All @@ -7,11 +8,6 @@
from ..exceptions import ConversionException, TopologyRetrievalError
from ..utils import _netjson_networkgraph, diff

try:
import urlparse
except ImportError: # pragma: no cover
from urllib import parse as urlparse # pragma: no cover


class BaseParser(object):
"""
Expand Down
6 changes: 1 addition & 5 deletions netdiff/parsers/cnml.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import os
from urllib import parse as urlparse

import libcnml

from ..exceptions import ParserError
from .base import BaseParser

try:
import urlparse
except ImportError:
from urllib import parse as urlparse


class CnmlParser(BaseParser):
"""CNML 0.1 parser"""
Expand Down
1 change: 0 additions & 1 deletion runtests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

try:
import nose2
Expand Down
6 changes: 1 addition & 5 deletions tests/test_base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import unittest
from unittest import mock

import responses
from requests.exceptions import ConnectionError
Expand All @@ -11,11 +12,6 @@
from netdiff.parsers.base import BaseParser
from netdiff.utils import _netjson_networkgraph

try:
from unittest import mock
except ImportError:
import mock


class TestBaseParser(unittest.TestCase):
"""BaseParser tests"""
Expand Down
Loading