from .loader import append_feed, delete_feed, overwrite_feed, list_feeds
from .schedule import Schedule
from ._version import version as __version__

import warnings

from .loader import append_feed, delete_feed, overwrite_feed, list_feeds
from .schedule import Schedule

try:
    from ._version import version as __version__
except ImportError:
    warnings.warn("pygtfs should be installed for the version to work")
    __version__ = "0"

Allow usage directly from the code (fix the _version import)
Allow usage directly from the code (fix the _version import)

+ import warnings
+ 
  from .loader import append_feed, delete_feed, overwrite_feed, list_feeds
  from .schedule import Schedule
- from ._version import version as __version__
  
+ try:
+     from ._version import version as __version__
+ except ImportError:
+     warnings.warn("pygtfs should be installed for the version to work")
+     __version__ = "0"
+ 
Allow usage directly from the code (fix the _version import)
## Code Before:
from .loader import append_feed, delete_feed, overwrite_feed, list_feeds
from .schedule import Schedule
from ._version import version as __version__

## Instruction:
Allow usage directly from the code (fix the _version import)
## Code After:
import warnings

from .loader import append_feed, delete_feed, overwrite_feed, list_feeds
from .schedule import Schedule

try:
    from ._version import version as __version__
except ImportError:
    warnings.warn("pygtfs should be installed for the version to work")
    __version__ = "0"
