Skip to content

Commit

Permalink
Remove python 3.8 check in init.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Rose Yemelyanova committed Sep 14, 2023
1 parent 29a09b3 commit 3ad5eda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
7 changes: 1 addition & 6 deletions src/ophyd_async/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import sys

if sys.version_info < (3, 8):
from importlib_metadata import version # noqa
else:
from importlib.metadata import version # noqa
from importlib.metadata import version # noqa

__version__ = version("ophyd_async")
del version
Expand Down
12 changes: 6 additions & 6 deletions src/ophyd_async/epics/demo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
"""Demo EPICS Devices for the tutorial"""

import asyncio
import atexit
import random
import string
import subprocess
import sys
import time
from enum import Enum
from pathlib import Path
from typing import Callable, List, Optional

import numpy as np
Expand Down Expand Up @@ -124,12 +130,6 @@ def start_ioc_subprocess() -> str:
"""Start an IOC subprocess with EPICS database for sample stage and sensor
with the same pv prefix
"""
import atexit
import random
import string
import subprocess
import sys
from pathlib import Path

pv_prefix = "".join(random.choice(string.ascii_uppercase) for _ in range(12)) + ":"
here = Path(__file__).absolute().parent
Expand Down

0 comments on commit 3ad5eda

Please sign in to comment.