Skip to content

Commit

Permalink
Enh: clean all Python2 things.
Browse files Browse the repository at this point in the history
naparuba committed Sep 22, 2024
1 parent 0027fd4 commit 9d4d03e
Showing 51 changed files with 658 additions and 1,925 deletions.
147 changes: 0 additions & 147 deletions .travis.yml

This file was deleted.

140 changes: 0 additions & 140 deletions appveyor.yml

This file was deleted.

2 changes: 0 additions & 2 deletions data/core-configuration/packs/core-cli-agent/cli/cli.py
Original file line number Diff line number Diff line change
@@ -4,8 +4,6 @@
# Copyright (C) 2014:
# Gabes Jean, [email protected]

from __future__ import print_function
import sys
import base64
import uuid
import time
Original file line number Diff line number Diff line change
@@ -4,7 +4,6 @@
# Copyright (C) 2014:
# Gabes Jean, [email protected]

from __future__ import print_function
import time
import sys

Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@

# LGPL, cf dashing-LICENCE
# From https://github.com/FedericoCeratto/dashing
from __future__ import print_function

import time
import sys
from collections import deque, namedtuple
@@ -20,10 +20,6 @@
from opsbro.misc.bro_quotes import get_quote
from opsbro.colorpalette import colorpalette
from opsbro.characters import CHARACTERS
from opsbro.util import PY3

if PY3:
basestring = str

# "graphic" elements

@@ -376,7 +372,7 @@ def _refresh_value(self):
value = self.vcallback()
if value is None:
value = 0
if isinstance(value, basestring):
if isinstance(value, str):
try:
value = int(value)
except ValueError:
1 change: 0 additions & 1 deletion data/core-configuration/packs/core-cli-deploy/cli/cli.py
Original file line number Diff line number Diff line change
@@ -4,7 +4,6 @@
# Copyright (C) 2014:
# Gabes Jean, [email protected]

from __future__ import print_function

import os
import itertools
Loading

0 comments on commit 9d4d03e

Please sign in to comment.