Browse Source

Remove old python 2 code

tags/nilmdb-2.0.0
Jim Paris 2 years ago
parent
commit
5f9367bdd3
1 changed files with 0 additions and 6 deletions
  1. +0
    -6
      nilmdb/cmdline/cmdline.py

+ 0
- 6
nilmdb/cmdline/cmdline.py View File

@@ -94,12 +94,6 @@ class Cmdline(object):

def __init__(self, argv = None):
self.argv = argv or sys.argv[1:]
try:
# Assume command line arguments are encoded with stdin's encoding,
# and reverse it. Won't be needed in Python 3, but for now..
self.argv = [ x.decode(sys.stdin.encoding) for x in self.argv ]
except Exception: # pragma: no cover
pass
self.client = None
self.def_url = os.environ.get("NILMDB_URL", "http://localhost/nilmdb/")
self.subcmd = {}


Loading…
Cancel
Save