Skip to content

Commit 4f59f72

Browse files
fix : some unused code deleted
1 parent 307e0cf commit 4f59f72

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

orangetool/orangetool_ip.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def set_ip(ip,DEVICE="eth0",DEBUG=False):
100100
file=open("/etc/network/interfaces","w")
101101
file.write(static_string)
102102
file.close()
103-
command=sub.Popen(["ifdown",DEVICE,"&&","ifup",DEVICE],stderr=sub.PIPE,stdin=sub.PIPE,stdout=sub.PIPE)
103+
sub.Popen(["ifdown",DEVICE,"&&","ifup",DEVICE],stderr=sub.PIPE,stdin=sub.PIPE,stdout=sub.PIPE)
104104
return True
105105
except Exception as e:
106106
if DEBUG==True:

orangetool/orangetool_ram.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import subprocess as sub
2-
import re
31
import psutil
42
def convert_bytes(num):
53
"""

orangetool/orangetool_system.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
import subprocess as sub
32
import time
43
import requests

0 commit comments

Comments
 (0)