diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -51,6 +51,12 @@ setup( 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Prog...
Add trove classifiers for supported python versions
py
diff --git a/aiodocker/__init__.py b/aiodocker/__init__.py index <HASH>..<HASH> 100644 --- a/aiodocker/__init__.py +++ b/aiodocker/__init__.py @@ -1,7 +1,7 @@ from .docker import Docker -__version__ = '0.8.2' +__version__ = '0.8.3a0' __all__ = ("Docker", )
Bump to <I>a0
py
diff --git a/charmhelpers/core/host.py b/charmhelpers/core/host.py index <HASH>..<HASH> 100644 --- a/charmhelpers/core/host.py +++ b/charmhelpers/core/host.py @@ -151,8 +151,7 @@ def service_running(service_name): return True elif os.path.exists(_INIT_D_CONF.format(service_name)): ...
Avoid conditional for sysv init check
py
diff --git a/pycbc/workflow/jobsetup.py b/pycbc/workflow/jobsetup.py index <HASH>..<HASH> 100644 --- a/pycbc/workflow/jobsetup.py +++ b/pycbc/workflow/jobsetup.py @@ -28,7 +28,7 @@ and add jobs/nodes to a pycbc workflow. For details about pycbc.workflow see: https://ldas-jobs.ligo.caltech.edu/~cbc/docs/pycbc/ahope.htm...
Add missing os import to workflow.jobsetup
py
diff --git a/djangosaml2/tests/__init__.py b/djangosaml2/tests/__init__.py index <HASH>..<HASH> 100644 --- a/djangosaml2/tests/__init__.py +++ b/djangosaml2/tests/__init__.py @@ -360,7 +360,7 @@ class SAML2Tests(TestCase): 'SAMLResponse': deflate_and_base64_encode(saml_response), }) ...
Fix python3 compatibility in recently enabled test
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -15,7 +15,7 @@ extensions = [ 'sphinx.ext.viewcode', ] -autodoc_mock_imports = ["neopixel_write", "pypixelbuf"] +autodoc_mock_imports = ["neopixel_write"] intersphinx_mapping = {'python': ('https://d...
remove pypixelbuf from mock imports
py
diff --git a/travis/encrypt.py b/travis/encrypt.py index <HASH>..<HASH> 100644 --- a/travis/encrypt.py +++ b/travis/encrypt.py @@ -48,10 +48,10 @@ def encrypt_key(key, password): @click.argument('file', type=click.Path(exists=True)) @click.password_option() def cli(username, repository, file, password): - """Encr...
Fixed grammar in cli docstring
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ from setuptools import setup, find_packages setup( name="analytics", license='Apache License 2.0', - version="0.6.1", + version="0.6.2", description="Library for efficiently adding analytics ...
Version bump and upgrade nydus
py
diff --git a/atlassian/bitbucket.py b/atlassian/bitbucket.py index <HASH>..<HASH> 100644 --- a/atlassian/bitbucket.py +++ b/atlassian/bitbucket.py @@ -520,8 +520,10 @@ class Bitbucket(AtlassianRestAPI): if order_by: params['orderBy'] = order_by params['details'] = details - - retur...
Bitbucket: add advanced mode support for get_branches func (#<I>)
py
diff --git a/salt/fileserver/minionfs.py b/salt/fileserver/minionfs.py index <HASH>..<HASH> 100644 --- a/salt/fileserver/minionfs.py +++ b/salt/fileserver/minionfs.py @@ -10,6 +10,9 @@ to use this backend, and ``minion`` must also be present in the Other minionfs settings include: :conf_master:`minionfs_whitelist`, :...
Added cross-link to the minionfs tutorial
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -250,9 +250,9 @@ on_saltstack = 'SALT_ON_SALTSTACK' in os.environ project = 'Salt' version = salt.version.__version__ -latest_release = '2017.7.4' # latest release -previous_release = '2016.11.9' # latest rel...
[<I>] Update the latest release information for docs - <I> is new stable release - <I> is new previous stable release - <I> branch is the "latest" release branch
py
diff --git a/downhill/util.py b/downhill/util.py index <HASH>..<HASH> 100644 --- a/downhill/util.py +++ b/downhill/util.py @@ -42,7 +42,8 @@ def shared_like(param, suffix, init=0): A new shared variable with the same shape and data type as ``param``. ''' return theano.shared(np.zeros_like(param.get_v...
Copy broadcastable attribute for shared_like.
py
diff --git a/processors/generic_processor.py b/processors/generic_processor.py index <HASH>..<HASH> 100644 --- a/processors/generic_processor.py +++ b/processors/generic_processor.py @@ -52,8 +52,8 @@ _DEFAULT_AUTO_CHECKPOINT = 10000 _DEFAULT_AUTO_PACK = 4 # How many inventories to cache -_DEFAULT_INV_CACHE_SIZE = ...
Change the default inventory cache size to 1. For large projects, this reduces memory overhead and also speeds up conversion.
py
diff --git a/udata/core/organization/views.py b/udata/core/organization/views.py index <HASH>..<HASH> 100644 --- a/udata/core/organization/views.py +++ b/udata/core/organization/views.py @@ -325,14 +325,14 @@ def datasets_resources_csv(org): @blueprint.route('/<org:org>/supplied-datasets.csv') def supplied_datasets...
Retrieve datasets by supplier via query, refs #<I>
py
diff --git a/pmagpy/controlled_vocabularies3.py b/pmagpy/controlled_vocabularies3.py index <HASH>..<HASH> 100755 --- a/pmagpy/controlled_vocabularies3.py +++ b/pmagpy/controlled_vocabularies3.py @@ -205,7 +205,7 @@ class Vocabulary(object): # print '-I- Could not connect to earthref.org, using cached vocabu...
another typo in controlled_vocabularies3
py
diff --git a/httprunner/cli.py b/httprunner/cli.py index <HASH>..<HASH> 100644 --- a/httprunner/cli.py +++ b/httprunner/cli.py @@ -101,20 +101,34 @@ def main_hrun(): def main_locust(): """ Performance test with locust: parse command line options and run commands. """ - logger.setup_logger("INFO") - t...
set logging level for locusts
py
diff --git a/treenav/admin.py b/treenav/admin.py index <HASH>..<HASH> 100644 --- a/treenav/admin.py +++ b/treenav/admin.py @@ -105,5 +105,12 @@ class MenuItemAdmin(MPTTModelAdmin): self.message_user(request, _('Menu Tree Rebuilt.')) return self.clean_cache(request) + def save_related(self, reques...
Overrode save_related method on MenuItemAdmin to automatically rebuild the tree post-save.
py
diff --git a/threadedcomments/models.py b/threadedcomments/models.py index <HASH>..<HASH> 100644 --- a/threadedcomments/models.py +++ b/threadedcomments/models.py @@ -8,16 +8,16 @@ PATH_DIGITS = getattr(settings, 'COMMENT_PATH_DIGITS', 10) class ThreadedComment(Comment): parent = models.ForeignKey('self', null=Tr...
Renamed path to tree_path
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -315,7 +315,7 @@ if __name__ == '__main__': scripts=['hotdoc/hotdoc', 'hotdoc/hotdoc_dep_printer'], package_data={ - 'hotdoc.formatters': ['html_templates/*', 'html_assets/*'], + ...
setup.py: update distributed data
py
diff --git a/zipline/pipeline/term.py b/zipline/pipeline/term.py index <HASH>..<HASH> 100644 --- a/zipline/pipeline/term.py +++ b/zipline/pipeline/term.py @@ -320,6 +320,9 @@ class AssetExists(Term): every asset on every date. We don't subclass Filter, however, because `AssetExists` is computed directly by t...
DOC: Clarify how AssetExists() is special.
py
diff --git a/fabrik/recipes/django.py b/fabrik/recipes/django.py index <HASH>..<HASH> 100644 --- a/fabrik/recipes/django.py +++ b/fabrik/recipes/django.py @@ -34,7 +34,12 @@ def after_deploy(): with prefix("source %s" % (virtualenv.get_path()+"/bin/activate")): virtualenv.update_requirements() _m...
Added try catch to django collectstatic
py
diff --git a/synapse/lib/ast.py b/synapse/lib/ast.py index <HASH>..<HASH> 100644 --- a/synapse/lib/ast.py +++ b/synapse/lib/ast.py @@ -730,18 +730,6 @@ class RelPropCond(Cond): ''' :foo:bar <cmpr> <value> ''' - def getLiftHints(self): - - if not self.isconst: - return () - - r...
remove rel prop lift hint. requires more work
py
diff --git a/mamburepayment.py b/mamburepayment.py index <HASH>..<HASH> 100644 --- a/mamburepayment.py +++ b/mamburepayment.py @@ -28,6 +28,9 @@ urlfunc = getrepaymentsurl # Objeto con los repayments de una cuenta en Mambu class MambuRepayment(MambuStruct): + def __iter__(self): + return MambuStructIterat...
mambu repayments are iterable
py
diff --git a/bin/pysaunter.py b/bin/pysaunter.py index <HASH>..<HASH> 100644 --- a/bin/pysaunter.py +++ b/bin/pysaunter.py @@ -80,7 +80,6 @@ def new(): if not os.path.isfile(os.path.join(cwd, "modules", "tailored", "page.py")): shutil.copy(os.path.join(saunter_installed_at, "_defaults", "tailored", "page....
--new now puts in support/files
py
diff --git a/vsphere/datadog_checks/vsphere/config_models/validators.py b/vsphere/datadog_checks/vsphere/config_models/validators.py index <HASH>..<HASH> 100644 --- a/vsphere/datadog_checks/vsphere/config_models/validators.py +++ b/vsphere/datadog_checks/vsphere/config_models/validators.py @@ -9,7 +9,8 @@ def initializ...
Fix collect_events default (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -51,7 +51,7 @@ setup( ], }, install_requires=[ - "astroid<=2.4.2", + "astroid>=2.5.7", "docutils", "pylint", # for `pyreverse` "sphinx",
devops| Updates to astroid with imp bugfix This is further fix for #<I> now that the upstream has been fixed See astroid <URL>
py
diff --git a/unyt/tests/test_unyt_array.py b/unyt/tests/test_unyt_array.py index <HASH>..<HASH> 100644 --- a/unyt/tests/test_unyt_array.py +++ b/unyt/tests/test_unyt_array.py @@ -719,7 +719,7 @@ def test_temperature_conversions(): balmy_F/balmy_F with pytest.raises(InvalidUnitOperation): balmy_F/...
paper over python2 test failure
py
diff --git a/shortuuid/__init__.py b/shortuuid/__init__.py index <HASH>..<HASH> 100644 --- a/shortuuid/__init__.py +++ b/shortuuid/__init__.py @@ -1,6 +1,4 @@ # flake8: noqa -import importlib.metadata - from shortuuid.main import decode from shortuuid.main import encode from shortuuid.main import get_alphabet
fix: Fix compatibility for python versions older than <I> (#<I>)
py
diff --git a/src/flask_pyoidc/flask_pyoidc.py b/src/flask_pyoidc/flask_pyoidc.py index <HASH>..<HASH> 100644 --- a/src/flask_pyoidc/flask_pyoidc.py +++ b/src/flask_pyoidc/flask_pyoidc.py @@ -1,7 +1,6 @@ import flask import functools -import time from flask.helpers import url_for from oic import rndstr from oic.o...
Remove redundant pararameters, automatically handled by the pyoidc library.
py
diff --git a/python/examples/relationships.py b/python/examples/relationships.py index <HASH>..<HASH> 100644 --- a/python/examples/relationships.py +++ b/python/examples/relationships.py @@ -12,7 +12,6 @@ from rosette.api import API, RelationshipsParameters def run(key): # Create an API instance api = API(us...
fixing whitespace on my linux machine this time
py
diff --git a/src/googleclouddebugger/python_breakpoint.py b/src/googleclouddebugger/python_breakpoint.py index <HASH>..<HASH> 100644 --- a/src/googleclouddebugger/python_breakpoint.py +++ b/src/googleclouddebugger/python_breakpoint.py @@ -41,8 +41,10 @@ BREAKPOINT_CONDITION_QUOTA_EXCEEDED = ( 'the snapshot to a le...
Python debugger: Indicate expiration using the refers_to field, to allow for better display. ------------- Created by MOE: <URL>
py
diff --git a/psiturk/experiment_errors.py b/psiturk/experiment_errors.py index <HASH>..<HASH> 100644 --- a/psiturk/experiment_errors.py +++ b/psiturk/experiment_errors.py @@ -24,7 +24,7 @@ class ExperimentError(Exception): intermediate_save = 1012, improper_inputs = 1013, browser_...
a little better name for this - overall, the experiment errors is need of improvement
py
diff --git a/test/tests.py b/test/tests.py index <HASH>..<HASH> 100755 --- a/test/tests.py +++ b/test/tests.py @@ -41,7 +41,9 @@ def main(args): assert input_files["file1"] == None assert input_files["file2"] == "testdata/dummy2.tif" assert zoom5["some_integer_parameter"] == 12 + asser...
adding float and bool tests
py
diff --git a/ginga/misc/tests/test_Callback.py b/ginga/misc/tests/test_Callback.py index <HASH>..<HASH> 100644 --- a/ginga/misc/tests/test_Callback.py +++ b/ginga/misc/tests/test_Callback.py @@ -294,6 +294,28 @@ class TestCallbacks(unittest.TestCase): actual = test_callbacks.cb["test_name"][0] assert expected == ...
Added some tests for make_callback
py
diff --git a/gapy/client.py b/gapy/client.py index <HASH>..<HASH> 100644 --- a/gapy/client.py +++ b/gapy/client.py @@ -1,7 +1,6 @@ from apiclient.discovery import build import httplib2 -from oauth2client.client import SignedJwtAssertionCredentials, flow_from_clientsecrets, \ - OAuth2WebServerFlow +from oauth2clien...
Remove use of run_flow in from_credentials_db A storage object should be provided as an argument
py
diff --git a/salt/grains/core.py b/salt/grains/core.py index <HASH>..<HASH> 100644 --- a/salt/grains/core.py +++ b/salt/grains/core.py @@ -31,7 +31,7 @@ _supported_dists += ('arch', 'mageia', 'meego', 'vmware', 'bluewhite64', import salt.log import salt.utils import salt.utils.network -from six import string_types +...
Replaced module six in file /salt/grains/core.py
py
diff --git a/fasteners/tests/test_process_lock.py b/fasteners/tests/test_process_lock.py index <HASH>..<HASH> 100644 --- a/fasteners/tests/test_process_lock.py +++ b/fasteners/tests/test_process_lock.py @@ -97,8 +97,6 @@ def lock_files(lock_path, handles_dir, num_handles=50): count = 0 for handle in h...
TST: crank up the timeout for external lock tests Windows is really slow, especially in a VM.
py
diff --git a/gui/tools/designer.py b/gui/tools/designer.py index <HASH>..<HASH> 100644 --- a/gui/tools/designer.py +++ b/gui/tools/designer.py @@ -551,8 +551,6 @@ if __name__ == '__main__': title="GUI Property Editor") propeditor = PropertyEditorPanel(f2, log) inspector = InspectorPan...
designer: fixed inspector/propeditor startup position
py
diff --git a/terms/forms.py b/terms/forms.py index <HASH>..<HASH> 100644 --- a/terms/forms.py +++ b/terms/forms.py @@ -4,6 +4,7 @@ from django.forms import ModelForm, TextInput, ValidationError from .models import Term from django.utils.translation import ugettext as _ from .settings import AVAILABLE_WIDGETS, TERMS_...
Uses ckeditor if it's in INSTALLED_APPS, otherwise the static files... ... are missing.
py
diff --git a/tests/testapp/tests/test_limits_on_number_of_queries.py b/tests/testapp/tests/test_limits_on_number_of_queries.py index <HASH>..<HASH> 100644 --- a/tests/testapp/tests/test_limits_on_number_of_queries.py +++ b/tests/testapp/tests/test_limits_on_number_of_queries.py @@ -67,3 +67,13 @@ def test_resets_connec...
add regression test to make sure it can be nested
py
diff --git a/buchner/project-template/PROJECTMODULE/settings.py b/buchner/project-template/PROJECTMODULE/settings.py index <HASH>..<HASH> 100644 --- a/buchner/project-template/PROJECTMODULE/settings.py +++ b/buchner/project-template/PROJECTMODULE/settings.py @@ -24,11 +24,11 @@ YUI_COMPRESSOR_BIN = os.environ.get('YUI_...
Fix settings It was importing things from the wrong place.
py
diff --git a/tests/test_mockupdb.py b/tests/test_mockupdb.py index <HASH>..<HASH> 100755 --- a/tests/test_mockupdb.py +++ b/tests/test_mockupdb.py @@ -43,12 +43,16 @@ class TestGoing(unittest.TestCase): with capture_stderr() as stderr: with self.assertRaises(ZeroDivisionError): - ...
Test that going()'s future keeps raising error after exiting.
py
diff --git a/aioworkers/core/base.py b/aioworkers/core/base.py index <HASH>..<HASH> 100644 --- a/aioworkers/core/base.py +++ b/aioworkers/core/base.py @@ -227,8 +227,9 @@ class NameLogger(logging.LoggerAdapter): return '[{}] {}'.format(self.extra['name'], msg), kwargs -class LoggingEntity(AbstractEntity): ...
LoggingEntity based on AbstractNamedEntity
py
diff --git a/figgypy/config.py b/figgypy/config.py index <HASH>..<HASH> 100644 --- a/figgypy/config.py +++ b/figgypy/config.py @@ -11,10 +11,6 @@ from figgypy.decrypt import ( ) from figgypy.exceptions import FiggypyError -log = logging.getLogger('figgypy') -if len(log.handlers) == 0: - log.addHandler(logging.Nu...
Remove NullHandler and figgypy logger
py
diff --git a/tests/tests.py b/tests/tests.py index <HASH>..<HASH> 100755 --- a/tests/tests.py +++ b/tests/tests.py @@ -88,6 +88,14 @@ class TestMYQL(unittest.TestCase): logging.error(e) self.assertEqual(response.status_code,200) + def test_select_in_2(self,): + response = self.yql.sele...
#<I>: IN Condition test added
py
diff --git a/python/test/communicator/test_all_reduce.py b/python/test/communicator/test_all_reduce.py index <HASH>..<HASH> 100644 --- a/python/test/communicator/test_all_reduce.py +++ b/python/test/communicator/test_all_reduce.py @@ -53,7 +53,7 @@ def test_all_reduce(seed, inplace, division, comm_nccl_opts): num_...
Delete np.clip.
py
diff --git a/pywindow/molecular.py b/pywindow/molecular.py index <HASH>..<HASH> 100644 --- a/pywindow/molecular.py +++ b/pywindow/molecular.py @@ -121,7 +121,7 @@ class Molecule(object): self.MW = molecular_weight(self.elements) return self.MW - def save_molecule_json(self, filepath=None, molecul...
Changed the names of function for saving output and molecule
py
diff --git a/OpenPNM/Utilities/IO.py b/OpenPNM/Utilities/IO.py index <HASH>..<HASH> 100644 --- a/OpenPNM/Utilities/IO.py +++ b/OpenPNM/Utilities/IO.py @@ -169,11 +169,11 @@ class VTK(): # Extract connectivity conn_element = piece_node.find('Lines').find('DataArray') array = VTK._element_to_ar...
Tweak to the VTK class...actually not sure how it worked before!
py
diff --git a/payex/handlers.py b/payex/handlers.py index <HASH>..<HASH> 100644 --- a/payex/handlers.py +++ b/payex/handlers.py @@ -90,7 +90,8 @@ class BaseHandler(object): resp = self._endpoint(**params) logger.debug(resp) except WebFault, e: - logger.exception(e) + ...
Return None when a SOAP request fails.
py
diff --git a/discord/types/interactions.py b/discord/types/interactions.py index <HASH>..<HASH> 100644 --- a/discord/types/interactions.py +++ b/discord/types/interactions.py @@ -37,8 +37,11 @@ if TYPE_CHECKING: from .message import AllowedMentions, Message +ApplicationCommandType = Literal[1, 2, 3] + class _...
[types] Add Application Command Type payloads
py
diff --git a/scrapelib.py b/scrapelib.py index <HASH>..<HASH> 100644 --- a/scrapelib.py +++ b/scrapelib.py @@ -308,10 +308,10 @@ class Scraper(object): self.raise_errors = raise_errors if USE_HTTPLIB2: - cache = cache_dir + self._cache_obj = cache_dir if cache_obj:...
keep cache parameter around for re-instantiation
py
diff --git a/foreman/api.py b/foreman/api.py index <HASH>..<HASH> 100644 --- a/foreman/api.py +++ b/foreman/api.py @@ -55,7 +55,7 @@ class Api: """ def _log(self, *args, **kwargs): ret = function(self, *args, **kwargs) - if len(self.history)>self.maxHistory: + if len...
Correct PEP8 E<I> missing whitespace around operator
py
diff --git a/codequality/main.py b/codequality/main.py index <HASH>..<HASH> 100755 --- a/codequality/main.py +++ b/codequality/main.py @@ -89,6 +89,9 @@ class CodeQuality(object): for filename, location in scmhandler.srcs_to_check( paths, rev=self.options.rev): + if self._should_i...
Fix ignore not applying to paths generated by SCM
py
diff --git a/releases/__init__.py b/releases/__init__.py index <HASH>..<HASH> 100644 --- a/releases/__init__.py +++ b/releases/__init__.py @@ -619,7 +619,7 @@ def setup(app): # Convenience Github version of above ('github_path', None), # Which document to use as the changelog - ('docum...
Improve code style and make compatible with Python 2
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from distutils.core import setup -setup(name='FenixEduPythonAPISDK', +setup(name='fenix_api_sdk', version='1.0', description='FenixEdu API SDK for python', author='Samuel Coelho',
Updated setup python file
py
diff --git a/skosify/skosify.py b/skosify/skosify.py index <HASH>..<HASH> 100644 --- a/skosify/skosify.py +++ b/skosify/skosify.py @@ -68,7 +68,7 @@ def in_general_ns(uri): RDFSuri = RDFS.uri for ns in (RDFuri, RDFSuri, OWL, SKOS, DC): - if uri.startswith(ns): + if uri.startswith(str(ns)): ...
Fix rdflib 5 compatibility issue
py
diff --git a/riak/transports/pbc.py b/riak/transports/pbc.py index <HASH>..<HASH> 100644 --- a/riak/transports/pbc.py +++ b/riak/transports/pbc.py @@ -106,6 +106,7 @@ class RiakPbcTransport(RiakTransport): ### backwards compat. we don't use the ConnectionManager (yet). host, port = cm.hostports[0] +...
Fix the __copy__ method. Pass the ConnectionManager to the copy.
py
diff --git a/pyramid/__init__.py b/pyramid/__init__.py index <HASH>..<HASH> 100644 --- a/pyramid/__init__.py +++ b/pyramid/__init__.py @@ -4,7 +4,7 @@ # # The pyramid module -__version__ = "0.7.0-dev" +__version__ = "0.7.0-dev0" try: # this var is injected in the setup build to enable
[ci skip] Bump to dev version
py
diff --git a/yandextank/plugins/NeUploader/plugin.py b/yandextank/plugins/NeUploader/plugin.py index <HASH>..<HASH> 100644 --- a/yandextank/plugins/NeUploader/plugin.py +++ b/yandextank/plugins/NeUploader/plugin.py @@ -41,7 +41,8 @@ class Plugin(AbstractPlugin, MonitoringDataListener): else: self....
luna job __type = tank
py
diff --git a/jieba/__init__.py b/jieba/__init__.py index <HASH>..<HASH> 100644 --- a/jieba/__init__.py +++ b/jieba/__init__.py @@ -157,6 +157,21 @@ def cut(sentence,cut_all=False): if x!="": yield x +def cut_for_search(sentence): + words = cut(sentence) + for w in words: + if len(w)>2: + for i in xrange...
add new method: cut_for_search(sentence), which can get better recall rate for search engine's reverse index
py
diff --git a/uproot/interp/numerical.py b/uproot/interp/numerical.py index <HASH>..<HASH> 100644 --- a/uproot/interp/numerical.py +++ b/uproot/interp/numerical.py @@ -269,14 +269,7 @@ class asdouble32(_asnumeric): return self.fromdtype.itemsize def __repr__(self): - args = [repr(self.low), repr(s...
More nitpicking include full types in description
py
diff --git a/proselint/checks/uncomparables/misc.py b/proselint/checks/uncomparables/misc.py index <HASH>..<HASH> 100644 --- a/proselint/checks/uncomparables/misc.py +++ b/proselint/checks/uncomparables/misc.py @@ -45,7 +45,7 @@ One axiom of Standard Written English is that your reader is paying close attention and ex...
refactor: use existence_check for uncomparables
py
diff --git a/fontaine/cmap.py b/fontaine/cmap.py index <HASH>..<HASH> 100644 --- a/fontaine/cmap.py +++ b/fontaine/cmap.py @@ -53,7 +53,7 @@ class Library(object): try: module = import_module('fontaine.charsets.internals.%s' % ext) self.register(module.Charset)...
use 'as' to label exception For Python 3.x, exceptions should be assigned with the 'as' keyword. See PEP<I> for details, this syntax is supported in Python <I>+.
py
diff --git a/rash/tests/utils.py b/rash/tests/utils.py index <HASH>..<HASH> 100644 --- a/rash/tests/utils.py +++ b/rash/tests/utils.py @@ -17,6 +17,10 @@ class BaseTestCase(unittest.TestCase): def assertIsInstance(self, obj, cls, msg=None): self.assertTrue(isinstance(obj, cls), msg) + if not ...
Add fallback definition for assertSetEqual for Python <I>
py
diff --git a/lib/wcs_helper.py b/lib/wcs_helper.py index <HASH>..<HASH> 100644 --- a/lib/wcs_helper.py +++ b/lib/wcs_helper.py @@ -123,21 +123,29 @@ def coord_system_guess(ctype1_name, ctype2_name, equinox): def fix_header(header): "return a new fixed header" - if hasattr(header, "ascardlist"): - old_...
fix_header checks for "cards" attribute first. Also check if "keyword" attribute is present for a card.
py
diff --git a/pyhaproxy/config.py b/pyhaproxy/config.py index <HASH>..<HASH> 100644 --- a/pyhaproxy/config.py +++ b/pyhaproxy/config.py @@ -90,6 +90,9 @@ class HasConfigBlock(object): if group.name == name: return group + def usebackends(self): + return self.config_block['usebac...
add the `use_backend/default_backend` getting method missed before
py
diff --git a/tests/protocol/test_h11.py b/tests/protocol/test_h11.py index <HASH>..<HASH> 100755 --- a/tests/protocol/test_h11.py +++ b/tests/protocol/test_h11.py @@ -57,6 +57,25 @@ async def test_protocol_send_response(protocol: H11Protocol) -> None: @pytest.mark.asyncio +async def test_protocol_preserve_headers(...
Add a test for ddfc<I>f2da9f<I>cf9a<I>e<I>cd<I>d<I>fd<I>b4c6 This ensures that for HTTP/1 the returned headers match the casing as sent by the ASGI app.
py
diff --git a/doc/source/conf.py b/doc/source/conf.py index <HASH>..<HASH> 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -27,7 +27,7 @@ sys.path.insert(0, os.path.abspath('../../pyorbital')) # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sp...
Fix doc for readthedocs.
py
diff --git a/teryt_tree/management/commands/load_terc.py b/teryt_tree/management/commands/load_terc.py index <HASH>..<HASH> 100644 --- a/teryt_tree/management/commands/load_terc.py +++ b/teryt_tree/management/commands/load_terc.py @@ -34,7 +34,7 @@ class Command(BaseCommand): if old_format: data =...
Fix compatibility with latest TERC files
py
diff --git a/hmtk/seismicity/occurrence/aki_maximum_likelihood.py b/hmtk/seismicity/occurrence/aki_maximum_likelihood.py index <HASH>..<HASH> 100644 --- a/hmtk/seismicity/occurrence/aki_maximum_likelihood.py +++ b/hmtk/seismicity/occurrence/aki_maximum_likelihood.py @@ -34,4 +34,4 @@ def aki_max_likelihood(mval, number...
Bender's method for max likelihood calculation of bGR
py
diff --git a/kernel_tuner/core.py b/kernel_tuner/core.py index <HASH>..<HASH> 100644 --- a/kernel_tuner/core.py +++ b/kernel_tuner/core.py @@ -16,7 +16,7 @@ KernelInstance = namedtuple("KernelInstance", ["name", "kernel_string", "temp_fi class DeviceInterface(object): """Class that offers a High-Level Device Inte...
No need to pass the times to the constructor.
py
diff --git a/openquake/engine/bin/openquake_cli.py b/openquake/engine/bin/openquake_cli.py index <HASH>..<HASH> 100755 --- a/openquake/engine/bin/openquake_cli.py +++ b/openquake/engine/bin/openquake_cli.py @@ -212,18 +212,14 @@ def list_calculations(job_type): :param job_type: 'hazard' or 'risk' """ - j...
Fixed list_calculations Former-commit-id: e0ec2ab7e<I>da0c<I>a1cac5eb7a<I>e<I>c
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -46,7 +46,7 @@ def read(fname): setup(name='icetea', - version='1.0.0-rc3', + version='1.0.0-rc4', description=DESCRIPTION, long_description=read('README.md'), author=OWNER_NAMES,
version <I> rc4 (#<I>)
py
diff --git a/brabeion/base.py b/brabeion/base.py index <HASH>..<HASH> 100644 --- a/brabeion/base.py +++ b/brabeion/base.py @@ -73,7 +73,11 @@ def send_badge_messages(badge, **kwargs): If the Badge class defines a message, send it to the user who was just awarded the badge. """ - message = getattr(badg...
renamed Badge.message to Badge.user_message and accept a callable
py
diff --git a/pyocd/debug/semihost.py b/pyocd/debug/semihost.py index <HASH>..<HASH> 100644 --- a/pyocd/debug/semihost.py +++ b/pyocd/debug/semihost.py @@ -304,10 +304,10 @@ class TelnetSemihostIOHandler(SemihostIOHandler): self._port = 0 else: self._abstract_socket = GDBSocket(port_or...
Fixed serving on localhost only in the semihosting telnet server. - This was fixed for the gdbserver but telnet was missed.
py
diff --git a/gcloud/monitoring/__init__.py b/gcloud/monitoring/__init__.py index <HASH>..<HASH> 100644 --- a/gcloud/monitoring/__init__.py +++ b/gcloud/monitoring/__init__.py @@ -30,5 +30,16 @@ from gcloud.monitoring.resource import ResourceDescriptor from gcloud.monitoring.timeseries import Point from gcloud.monitor...
Define __all__ in gcloud/monitoring/__init__.py. This is so that "from gcloud.monitoring import *" doesn't import the package's module names.
py
diff --git a/sty/primitive.py b/sty/primitive.py index <HASH>..<HASH> 100644 --- a/sty/primitive.py +++ b/sty/primitive.py @@ -63,7 +63,6 @@ class Base(dict): def __new__(cls): - cls.is_muted: bool = False cls.renderfuncs: Dict[Render, Callable] = {} cls.styles: Dict[str, Tuple[Render,...
Cleanup: remove is_muted from Base class. #<I>
py
diff --git a/kolekto/commands/importer.py b/kolekto/commands/importer.py index <HASH>..<HASH> 100644 --- a/kolekto/commands/importer.py +++ b/kolekto/commands/importer.py @@ -13,11 +13,12 @@ from kolekto.exceptions import KolektoRuntimeError def clean_title(title): + title = re.sub('[._-]', ' ', title).strip()....
Better cleaning of titles before to search (fixes #<I>) Now replace underscores and dashes (in addition of dot) into spaces and also do the replacement if the title can't be parsed.
py
diff --git a/sitemap/sitemap.py b/sitemap/sitemap.py index <HASH>..<HASH> 100644 --- a/sitemap/sitemap.py +++ b/sitemap/sitemap.py @@ -161,9 +161,13 @@ class SitemapGenerator(object): chfreq = self.changefreqs['indexes'] pageurl = '' if page.url == 'index.html' else page.url + + #...
Ability to exclude URLs from a sitemap Adds the ability to exclude a URL for being added to a sitemap (very common need).
py
diff --git a/i3pystatus/mpd.py b/i3pystatus/mpd.py index <HASH>..<HASH> 100644 --- a/i3pystatus/mpd.py +++ b/i3pystatus/mpd.py @@ -133,7 +133,10 @@ cleartext to the server.)"), try: status = self._mpd_command(self.s, "status") playback_state = status["state"] - currentsong ...
mpd: use empty dict on stopped playback state (#<I>)
py
diff --git a/tests/integration/states/test_match.py b/tests/integration/states/test_match.py index <HASH>..<HASH> 100644 --- a/tests/integration/states/test_match.py +++ b/tests/integration/states/test_match.py @@ -1,12 +1,7 @@ -# -*- coding: utf-8 -*- """ - :codeauthor: Pedro Algarvio (pedro@algarvio.me) - - - ...
Drop Py2 and six on tests/integration/states/test_match.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( author_email = 'brent@fprimex.com', packages = ['zdesk'], include_package_data = True, - install_requires = ['httplib2', 'simplejson'], + install_requires = ['requests', 'simplejson'], ...
update setup.py to use requests
py
diff --git a/saspy/sasiocom.py b/saspy/sasiocom.py index <HASH>..<HASH> 100644 --- a/saspy/sasiocom.py +++ b/saspy/sasiocom.py @@ -486,7 +486,16 @@ class SASSessionCOM(object): # 1. Swap \x0c for \n # 2. Change body class selector # 3. Increase font size - listing...
fix COM html transcoding bug; issue <I>
py
diff --git a/pypet/tests/testutils/ioutils.py b/pypet/tests/testutils/ioutils.py index <HASH>..<HASH> 100644 --- a/pypet/tests/testutils/ioutils.py +++ b/pypet/tests/testutils/ioutils.py @@ -24,7 +24,7 @@ from pypet.utils.decorators import copydoc import pypet.utils.ptcompat as ptcompat hdf5version = ptcompat.hdf5_...
Fixed printing of version for python 3;
py
diff --git a/exporters/writers/s3_writer.py b/exporters/writers/s3_writer.py index <HASH>..<HASH> 100644 --- a/exporters/writers/s3_writer.py +++ b/exporters/writers/s3_writer.py @@ -80,6 +80,7 @@ class S3Writer(FilebaseBaseWriter): def __init__(self, options, *args, **kwargs): import boto + from...
use also here OrdinaryCallingFormat
py
diff --git a/yelp_kafka_tool/kafka_cluster_manager/cluster_info/util.py b/yelp_kafka_tool/kafka_cluster_manager/cluster_info/util.py index <HASH>..<HASH> 100644 --- a/yelp_kafka_tool/kafka_cluster_manager/cluster_info/util.py +++ b/yelp_kafka_tool/kafka_cluster_manager/cluster_info/util.py @@ -76,6 +76,12 @@ def separa...
Return sorted over_loaded under_loaded groups
py
diff --git a/deis/settings.py b/deis/settings.py index <HASH>..<HASH> 100644 --- a/deis/settings.py +++ b/deis/settings.py @@ -253,6 +253,10 @@ CELERY_ACCEPT_CONTENT = ['pickle', 'json'] CELERY_IMPORTS = ('api.tasks',) CELERY_RESULT_BACKEND = 'amqp' +# hardcode celeryd concurrency +# this number should be equal to ...
hardcode celeryd concurrency
py
diff --git a/breakpoint.py b/breakpoint.py index <HASH>..<HASH> 100755 --- a/breakpoint.py +++ b/breakpoint.py @@ -274,7 +274,10 @@ def counter2_with_helper(n): # Could also try an iterator pattern where __iter__ provides instantation # and next, well, is next... Study that possibility, see if it leads to -# a simp...
more thoughts on iterator syntax for watchdog pattern
py
diff --git a/fmf/base.py b/fmf/base.py index <HASH>..<HASH> 100644 --- a/fmf/base.py +++ b/fmf/base.py @@ -187,7 +187,9 @@ class Tree(object): formatting = re.sub("\\\\n", "\n", formatting) name = self.name data = self.data - evaluated = [eval(value) for value in values...
Make eval() work with with Python 3 as well
py
diff --git a/python/dllib/src/bigdl/dllib/keras/layers/torch.py b/python/dllib/src/bigdl/dllib/keras/layers/torch.py index <HASH>..<HASH> 100644 --- a/python/dllib/src/bigdl/dllib/keras/layers/torch.py +++ b/python/dllib/src/bigdl/dllib/keras/layers/torch.py @@ -788,3 +788,21 @@ class ResizeBilinear(ZooKerasLayer): ...
implement python version of build_model method for seq2seq (#<I>) * implement python version of build_model method for seq2seq
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -80,7 +80,7 @@ install_requires = setup_requires + ['Mako>=1.0.1', 'corner>=2.0.1', 'requests>=1.2.1', 'beautifulsoup4>=4.6.0', - 'six'...
Install six>=<I> (#<I>)
py
diff --git a/spinoff/util/pattern_matching.py b/spinoff/util/pattern_matching.py index <HASH>..<HASH> 100644 --- a/spinoff/util/pattern_matching.py +++ b/spinoff/util/pattern_matching.py @@ -88,6 +88,10 @@ class Matcher(_Marker): def __ne__(self, x): return not (self == x) + def __hash__(self): + ...
Added detection of when pattern matching objects are put in a hashing collection (because they won't work that way, in a non-obvious way)
py
diff --git a/troposphere/ec2.py b/troposphere/ec2.py index <HASH>..<HASH> 100644 --- a/troposphere/ec2.py +++ b/troposphere/ec2.py @@ -245,7 +245,7 @@ class ElasticInferenceAccelerator(AWSProperty): class LicenseSpecification(AWSProperty): props = { - 'LicenseConfigurationArn': (basestring, False), + ...
EC2 Instance LicenseConfigurationArn is required
py
diff --git a/grammpy/Grammars/MultipleRulesGrammar.py b/grammpy/Grammars/MultipleRulesGrammar.py index <HASH>..<HASH> 100644 --- a/grammpy/Grammars/MultipleRulesGrammar.py +++ b/grammpy/Grammars/MultipleRulesGrammar.py @@ -6,10 +6,12 @@ Part of grammpy """ +import inspect +from grammpy.exceptions import NotRuleEx...
Add validation that type is type of Rule into MultipleRulesGrammar
py
diff --git a/python/bigdl/utils/common.py b/python/bigdl/utils/common.py index <HASH>..<HASH> 100644 --- a/python/bigdl/utils/common.py +++ b/python/bigdl/utils/common.py @@ -283,14 +283,17 @@ def create_spark_conf(): sparkConf.setAll(bigdl_conf.items()) return sparkConf - def get_spark_context(conf = None...
Ignore some folders from doctest scanning (#<I>) * remove movielens downloading from unittest * fix spark<I> Lock problem * fix return
py
diff --git a/pip_api/_call.py b/pip_api/_call.py index <HASH>..<HASH> 100644 --- a/pip_api/_call.py +++ b/pip_api/_call.py @@ -5,7 +5,7 @@ import sys def call(*args, cwd=None): python_location = os.environ.get("PIPAPI_PYTHON_LOCATION", sys.executable) - env = {**os.environ, **{"PIP_YES": "true"}} + env = ...
pip_api/_call: pass PIP_DISABLE_PIP_VERSION_CHECK to all invocations (#<I>)
py
diff --git a/tasklib/tests.py b/tasklib/tests.py index <HASH>..<HASH> 100644 --- a/tasklib/tests.py +++ b/tasklib/tests.py @@ -1269,4 +1269,4 @@ class TaskWarriorBackendTest(TasklibTest): def test_config(self): assert self.tw.config['nag'] == "You have more urgent tasks." - assert self.tw.config[...
tests: Use a configuration variable available in older TW releases
py
diff --git a/_pytest/junitxml.py b/_pytest/junitxml.py index <HASH>..<HASH> 100644 --- a/_pytest/junitxml.py +++ b/_pytest/junitxml.py @@ -162,9 +162,8 @@ class LogXML(object): filename, lineno, skipreason = report.longrepr if skipreason.startswith("Skipped: "): skipreason = b...
Use processced skipreason for generating skip Junit node
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -82,6 +82,12 @@ else: extra_compile_args = ['-std=c99', '-fPIC', '-O3', '-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION'] +long_description = """\ +This module is a lightly modified version of the code originally written...
Add description for pypi
py
diff --git a/sassutils/wsgi.py b/sassutils/wsgi.py index <HASH>..<HASH> 100644 --- a/sassutils/wsgi.py +++ b/sassutils/wsgi.py @@ -145,7 +145,7 @@ class SassMiddleware(object): self.quote_css_string(str(e)).encode('utf-8'), b'; color: maroon; background-color: white', ...
Reversed order of font declarations
py