Skip to content

Commit

Permalink
clean old imports
Browse files Browse the repository at this point in the history
  • Loading branch information
shawwwn committed Jan 10, 2024
1 parent 28ff568 commit 32ebdba
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 20 deletions.
2 changes: 2 additions & 0 deletions cproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
# Copyright (c) 2023 Shawwwn <[email protected]>
# License: MIT
import sys
sys.path.pop(0)
import asyncio
sys.path.insert(0, '')
import time
import socket
import uproxy
Expand Down
1 change: 0 additions & 1 deletion uproxy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# License: MIT

from .core import *
# from .core import VERSION, LOG_NONE, LOG_INFO, LOG_DEBUG

def __init__():
attrs = {
Expand Down
6 changes: 1 addition & 5 deletions uproxy/core.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
# Core utility functions for uproxy module
# Copyright (c) 2023 Shawwwn <[email protected]>
# License: MIT

try:
import uasyncio as asyncio
except:
import asyncio
import asyncio

VERSION = 2.0
LOG_NONE = 0
Expand Down
6 changes: 1 addition & 5 deletions uproxy/http.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
# HTTP/HTTPS proxy for uproxy module
# Copyright (c) 2023 Shawwwn <[email protected]>
# License: MIT

try:
import uasyncio as asyncio
except:
import asyncio
import asyncio
from . import core

async def send_http_response(ss, code, desc="", headers=[], body=None):
Expand Down
6 changes: 1 addition & 5 deletions uproxy/socks4.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
# SOCKS4 proxy for uproxy module
# Copyright (c) 2023 Shawwwn <[email protected]>
# License: MIT

import struct
import socket
try:
import uasyncio as asyncio
except:
import asyncio
import asyncio
from . import core

REQ_GRANTED = 90
Expand Down
6 changes: 2 additions & 4 deletions uproxy/socks5.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# SOCKS5 proxy for uproxy module
# Copyright (c) 2023 Shawwwn <[email protected]>
# License: MIT

import struct
import socket
import asyncio
try:
import uasyncio as asyncio
from uasyncio.stream import Stream
from asyncio.stream import Stream
except:
import asyncio
class Stream: pass
from . import core

Expand Down

0 comments on commit 32ebdba

Please sign in to comment.