rana-cli/tests/samples/codefiles/python.py
2015-09-16 12:57:49 -07:00

36 lines
672 B
Python

# -*- coding: utf-8 -*-
# vim: set filetype=python
import os, sys
import django
from app import *
from flask import session
import simplejson as json
from . import privatemodule
from jinja import tags
from pygments.lexers import BaseLexer
from . import LocalClass
from . import MyClass as MyParser
from ..compat import u
from sqlalchemy import (
functions as sqlfunctions,
orm as sqlorm,
)
try:
from mock import ANY
except ImportError:
from unittest.mock import ANY
class MyClass(object):
"""this class
"""
def method1(self):
a = 1 + 2
b = 'hello world!'
for x in y:
print(x)
raise Exception()