diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/src/colab_gitlab/views.py b/src/colab_gitlab/views.py index <HASH>..<HASH> 100644 --- a/src/colab_gitlab/views.py +++ b/src/colab_gitlab/views.py @@ -1,5 +1,6 @@ import os import sys +from django.conf import settings from colab.plugins.views import ColabProxyView @@ -8,6 +9,7 @@ class GitlabProxyVie...
Added rewrite to login url
py
diff --git a/python_utils/time.py b/python_utils/time.py index <HASH>..<HASH> 100644 --- a/python_utils/time.py +++ b/python_utils/time.py @@ -163,7 +163,7 @@ def timeout_generator( if six.PY3: # pragma: no cover timer = time.perf_counter - else: + else: # pragma: no cover timer = time....
fixed test coverage issue. Fixes #<I>
py
diff --git a/spyderlib/widgets/shell.py b/spyderlib/widgets/shell.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/shell.py +++ b/spyderlib/widgets/shell.py @@ -884,6 +884,9 @@ class PythonShellWidget(TracebackLinksMixin, ShellBaseWidget, text = to_text_string(self.get_current_line_to_cursor()) ...
Fix error when trying an empty complete in internal console
py
diff --git a/openquake/hazardlib/tests/geo/surface/base_surface_test.py b/openquake/hazardlib/tests/geo/surface/base_surface_test.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/tests/geo/surface/base_surface_test.py +++ b/openquake/hazardlib/tests/geo/surface/base_surface_test.py @@ -87,7 +87,6 @@ class GetJo...
Removed a commented pdb
py
diff --git a/ot/bregman.py b/ot/bregman.py index <HASH>..<HASH> 100644 --- a/ot/bregman.py +++ b/ot/bregman.py @@ -1982,8 +1982,8 @@ def screenkhorn(a, b, M, reg, ns_budget=None, nt_budget=None, uniform=True, rest print('|I_active| = %s \t |J_active| = %s ' %(len(I), len(J))) # Ic, Jc: complemen...
fix definitions complementary active sets Ic, Jc
py
diff --git a/thinc/about.py b/thinc/about.py index <HASH>..<HASH> 100644 --- a/thinc/about.py +++ b/thinc/about.py @@ -4,7 +4,7 @@ # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py __name__ = 'thinc' -__version__ = '6.10.2.dev1' +__version__ = '6.10.2' __summary__ = "Practical Machine Learning...
Fix version in about.py for thinc <I>
py
diff --git a/restclients_core/util/__init__.py b/restclients_core/util/__init__.py index <HASH>..<HASH> 100644 --- a/restclients_core/util/__init__.py +++ b/restclients_core/util/__init__.py @@ -1,3 +1,4 @@ +import sys try: from urllib import quote_plus from urllib import urlencode as urllib_encode @@ -26,4 ...
Added check for python 2 vs 3 for urlencode
py
diff --git a/tests/test_debugwindow.py b/tests/test_debugwindow.py index <HASH>..<HASH> 100644 --- a/tests/test_debugwindow.py +++ b/tests/test_debugwindow.py @@ -30,8 +30,8 @@ class TestDebugWindow(BaseWidgetTest): debug = DebugWindow(self.window) print("Something!") self.window.update() - ...
Fix mock.patch in test for DebugWindow
py
diff --git a/source/rafcon/gui/mygaphas/canvas.py b/source/rafcon/gui/mygaphas/canvas.py index <HASH>..<HASH> 100644 --- a/source/rafcon/gui/mygaphas/canvas.py +++ b/source/rafcon/gui/mygaphas/canvas.py @@ -14,6 +14,9 @@ import gaphas.canvas from gaphas.item import Item +from rafcon.utils import log +logger = log.g...
fix(gaphas): tolerate missing view elements in core_view_map-ping This is a work around that has to be observed. I have problems to use the changed made by commit 6f<I>. In the TODOs question and occures are described.
py
diff --git a/src/audio_metadata/formats/mp3.py b/src/audio_metadata/formats/mp3.py index <HASH>..<HASH> 100644 --- a/src/audio_metadata/formats/mp3.py +++ b/src/audio_metadata/formats/mp3.py @@ -508,7 +508,7 @@ class MP3StreamInfo(StreamInfo): if frame._xing: break data.seek(frame._start + frame._...
Catch bitstruct.error when trying to load MPEG frames Prevents failures when trying to detect false positives.
py
diff --git a/sphinx_gallery/gen_rst.py b/sphinx_gallery/gen_rst.py index <HASH>..<HASH> 100644 --- a/sphinx_gallery/gen_rst.py +++ b/sphinx_gallery/gen_rst.py @@ -487,7 +487,7 @@ def generate_file_rst(fname, target_dir, src_dir, gallery_conf): # the code blocks in sphinx-gallery, __doc__ is actually #...
Include __file__ in globals for executing file
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,6 +3,8 @@ import sys from setuptools import setup, find_packages +__version__ = "2.8.2" + result_handlers = [ "db = rotest.core.result.handlers.db_handler:DBHandler", "xml = rotest.core.result.handlers.xml_h...
bumped patch-number in version
py
diff --git a/quarkc/parser.py b/quarkc/parser.py index <HASH>..<HASH> 100644 --- a/quarkc/parser.py +++ b/quarkc/parser.py @@ -455,7 +455,7 @@ class Parser: @g.rule('uop = NOT / MINUS / TWIDDLE / CAST') def visit_uop(self, node, (op,)): if op == "?": - return Cast + return lambd...
Removing lambda breaks code, so reinstate it.
py
diff --git a/test/test.py b/test/test.py index <HASH>..<HASH> 100644 --- a/test/test.py +++ b/test/test.py @@ -258,6 +258,23 @@ class TestPybossaClient(object): assert task.app_id == self.task['app_id'], task @patch('pbclient.requests.get') + def test_get_tasks_errors(self, Mock): + """Test ge...
Unit tests for get_tasks errors
py
diff --git a/satpy/composites/__init__.py b/satpy/composites/__init__.py index <HASH>..<HASH> 100644 --- a/satpy/composites/__init__.py +++ b/satpy/composites/__init__.py @@ -1449,7 +1449,7 @@ class BackgroundCompositor(GenericCompositor): # Get enhanced images out of the composites foreground = get...
Fix a typo in get_enhanced_image call
py
diff --git a/conftest.py b/conftest.py index <HASH>..<HASH> 100644 --- a/conftest.py +++ b/conftest.py @@ -7,4 +7,5 @@ Configuration for tests with pytest from hypothesis import settings, HealthCheck # profile for CI runs on GitHub machines, which may be slow from time to time so we disable the "too slow" HealthChe...
increase hypothesis timeout deadline for CI runs
py
diff --git a/vcs_repo_mgr/tests.py b/vcs_repo_mgr/tests.py index <HASH>..<HASH> 100644 --- a/vcs_repo_mgr/tests.py +++ b/vcs_repo_mgr/tests.py @@ -16,7 +16,7 @@ import coloredlogs # The module we're testing. from vcs_repo_mgr import GitRepo -GIT_REPO = 'git@github.com:xolox/python-verboselogs.git' +GIT_REPO = 'http...
Switch git clone in tests to use HTTPS instead of SSH
py
diff --git a/generate.py b/generate.py index <HASH>..<HASH> 100644 --- a/generate.py +++ b/generate.py @@ -15,15 +15,28 @@ def functions(): cont = False for ln in f: - if cont: + if cont is True: lines.append(ln) cont = False - if not ln.startswith('NN_EXPORT'): + if cont is '{': +...
generate.py: crude tweaks to allow structs and typedefs
py
diff --git a/src/sos/__init__.py b/src/sos/__init__.py index <HASH>..<HASH> 100644 --- a/src/sos/__init__.py +++ b/src/sos/__init__.py @@ -4,10 +4,13 @@ # Distributed under the terms of the 3-clause BSD License. import os +import textwrap + from ._version import __version__ from .__main__ import get_run_parser ...
Allow script in execute_script to be indented
py
diff --git a/src/python/pants/engine/internals/native.py b/src/python/pants/engine/internals/native.py index <HASH>..<HASH> 100644 --- a/src/python/pants/engine/internals/native.py +++ b/src/python/pants/engine/internals/native.py @@ -902,7 +902,7 @@ class Native(metaclass=SingletonMetaclass): return self.lib....
Fix write_stderr in native.py (#<I>) ### Problem The `write_stderr` function in `native.py` was mistakenly calling the Rust FFI function to write to stdout rather than to write to stderr. This was causing problems with redrawing swim lanes in the new terminal UI, and is in general incorrect. ### Solution Have...
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -29,14 +29,12 @@ packages = [ if os.name == 'nt': scripts.append('flask/bin/floyd.bat') -def get_file_contents(file_path, curfile=__file__ or ''): +package_dir = os.path.realpath(os.path.dirname(curfile)) + +def get_file...
changed get_file_contents to only find package directory once
py
diff --git a/aliyun/log/version.py b/aliyun/log/version.py index <HASH>..<HASH> 100644 --- a/aliyun/log/version.py +++ b/aliyun/log/version.py @@ -1,4 +1,4 @@ -__version__ = '0.6.47.2' +__version__ = '0.6.47.3' import sys OS_VERSION = str(sys.platform)
modify version from <I> to <I>
py
diff --git a/python/mxnet/gluon/data/dataloader.py b/python/mxnet/gluon/data/dataloader.py index <HASH>..<HASH> 100644 --- a/python/mxnet/gluon/data/dataloader.py +++ b/python/mxnet/gluon/data/dataloader.py @@ -650,6 +650,10 @@ class DataLoader(object): pin_device_id=self._pin_device_id, ...
WAR the dataloader issue with forked processes holding stale references (#<I>)
py
diff --git a/forms_builder/forms/models.py b/forms_builder/forms/models.py index <HASH>..<HASH> 100644 --- a/forms_builder/forms/models.py +++ b/forms_builder/forms/models.py @@ -156,7 +156,7 @@ class AbstractField(models.Model): label = models.CharField(_("Label"), max_length=LABEL_MAX_LENGTH) field_ty...
Fix field length for field types. Closes #1.
py
diff --git a/sx/pisa3/pisa_context.py b/sx/pisa3/pisa_context.py index <HASH>..<HASH> 100644 --- a/sx/pisa3/pisa_context.py +++ b/sx/pisa3/pisa_context.py @@ -373,8 +373,8 @@ class pisaCSSBuilder(css.CSSBuilder): c.frameList = [] c.frameStaticList = [] - except Exception, e: - ...
Theses try: except Exception, e: blocks all over the place must die with fire.
py
diff --git a/tests/test_amqp_chain.py b/tests/test_amqp_chain.py index <HASH>..<HASH> 100755 --- a/tests/test_amqp_chain.py +++ b/tests/test_amqp_chain.py @@ -57,7 +57,12 @@ def teardown_module(module): def test_publication(pdf_publication, b64_pdf_file): assert pdf_publication assert pdf_publication.filenam...
Fixed tests to compare base<I> data without whitespaces.
py
diff --git a/slackviewer/formatter.py b/slackviewer/formatter.py index <HASH>..<HASH> 100644 --- a/slackviewer/formatter.py +++ b/slackviewer/formatter.py @@ -48,6 +48,8 @@ class SlackFormatter(object): def render_text(self, message, process_markdown=True): message = message.replace("<!channel>", "@chan...
add @here and @everyone
py
diff --git a/montblanc/impl/rime/tensorflow/feeders/rime_data_feeder.py b/montblanc/impl/rime/tensorflow/feeders/rime_data_feeder.py index <HASH>..<HASH> 100644 --- a/montblanc/impl/rime/tensorflow/feeders/rime_data_feeder.py +++ b/montblanc/impl/rime/tensorflow/feeders/rime_data_feeder.py @@ -250,6 +250,12 @@ class MS...
Add method for hashing an array's index Inspects an array's shape on the hypercube and thend builds and hashes a list of the lower and upper extents. Just uses (0, d) if dimension d is integral.
py
diff --git a/youtrack/__init__.py b/youtrack/__init__.py index <HASH>..<HASH> 100644 --- a/youtrack/__init__.py +++ b/youtrack/__init__.py @@ -1,3 +1,3 @@ -__version__ = '0.0.1.dev15' +__version__ = '0.0.1.dev16' from youtrack.youtrack import *
update version for pypi
py
diff --git a/jellyfish/_jellyfish.py b/jellyfish/_jellyfish.py index <HASH>..<HASH> 100644 --- a/jellyfish/_jellyfish.py +++ b/jellyfish/_jellyfish.py @@ -162,11 +162,12 @@ def jaro_winkler(s1, s2, long_tolerance=False): def soundex(s): - if not s: - return s _check_type(s) + if not s: + ...
soundex and nysiis should raise on NoneType or bool
py
diff --git a/yola/__init__.py b/yola/__init__.py index <HASH>..<HASH> 100644 --- a/yola/__init__.py +++ b/yola/__init__.py @@ -2,6 +2,6 @@ try: import pkg_resources pkg_resources.declare_namespace(__name__) -except ImportError: +except ImportError: # pragma: no cover import pkgutil __path__ = pkgu...
Tell coverage that we aren't covering yola's namespace extension with pkgutil
py
diff --git a/emirdrp/core.py b/emirdrp/core.py index <HASH>..<HASH> 100644 --- a/emirdrp/core.py +++ b/emirdrp/core.py @@ -45,7 +45,7 @@ _meta = {'readmode': ('READMODE', 'undefined'), 'texp': ('EXPTIME', None), 'filter': ('FILTER', 'undefined'), 'imagetype': ('IMGTYP', 'undefined'), - ...
Change FILTERPOS by FILTPOS
py
diff --git a/tests/implemented.py b/tests/implemented.py index <HASH>..<HASH> 100755 --- a/tests/implemented.py +++ b/tests/implemented.py @@ -4,6 +4,7 @@ import sys; sys.path.append("..") from fireplace import cards from fireplace.cards import debug, game, classic, naxxramas, gvg, removed from fireplace.card import...
Tests: Treat vanilla minions as implemented It's not perfect since we implement a lot more, but better than nothing.
py
diff --git a/tests/unit_project/test_newman/test_fields.py b/tests/unit_project/test_newman/test_fields.py index <HASH>..<HASH> 100644 --- a/tests/unit_project/test_newman/test_fields.py +++ b/tests/unit_project/test_newman/test_fields.py @@ -1,13 +1,12 @@ # -*- coding: utf-8 -*- from django.forms import ValidationEr...
Fixed markup related tests (but still, sometimes initial_data fixture is not loaded).
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -25,9 +25,9 @@ import numpy as np import six if six.PY3: - exec(open('ipopt/version.py', encoding="utf-8").read()) + exec(open('cyipopt/version.py', encoding="utf-8").read()) else: - exec(open('ipopt/version.py')...
Amend package directory structure to reflect other recent commits
py
diff --git a/synapse/tests/test_lib_stormtypes.py b/synapse/tests/test_lib_stormtypes.py index <HASH>..<HASH> 100644 --- a/synapse/tests/test_lib_stormtypes.py +++ b/synapse/tests/test_lib_stormtypes.py @@ -2617,5 +2617,10 @@ class StormTypesTest(s_test.SynTest): self.eq('rofl', nodes[0].nodedata['lulz']) ...
Add coverage for nodedata (#<I>)
py
diff --git a/pysolr.py b/pysolr.py index <HASH>..<HASH> 100644 --- a/pysolr.py +++ b/pysolr.py @@ -225,13 +225,14 @@ class SolrError(Exception): class Results(object): - def __init__(self, docs, hits, highlighting=None, facets=None, spellcheck=None, stats=None): + def __init__(self, docs, hits, highlighting=...
Added query time to results as attribute.
py
diff --git a/steam/client/__init__.py b/steam/client/__init__.py index <HASH>..<HASH> 100644 --- a/steam/client/__init__.py +++ b/steam/client/__init__.py @@ -490,7 +490,7 @@ class SteamClient(CMClient, BuiltinBase): message.body.supports_rate_limit_response = True if login_id is None: - ...
Change XOR mask for login_id; #<I> Otherwise it will always clash with the Steam client running on the same machine. That was the default behaviour before login_id was implemented.
py
diff --git a/openquake/risklib/riskinput.py b/openquake/risklib/riskinput.py index <HASH>..<HASH> 100644 --- a/openquake/risklib/riskinput.py +++ b/openquake/risklib/riskinput.py @@ -25,7 +25,7 @@ import collections import numpy from openquake.baselib.general import groupby, split_in_blocks_2 -from openquake.hazard...
Updated the usage of gsim_imt_dt
py
diff --git a/django_cool_paginator/templatetags/paginator_tags.py b/django_cool_paginator/templatetags/paginator_tags.py index <HASH>..<HASH> 100644 --- a/django_cool_paginator/templatetags/paginator_tags.py +++ b/django_cool_paginator/templatetags/paginator_tags.py @@ -83,7 +83,7 @@ def ellipsis_or_number(context, pag...
Meybe we should handle situation when page parameter from GET request is empty and set it to default first page
py
diff --git a/spyder/widgets/ipython.py b/spyder/widgets/ipython.py index <HASH>..<HASH> 100644 --- a/spyder/widgets/ipython.py +++ b/spyder/widgets/ipython.py @@ -331,6 +331,10 @@ These commands were executed: else: return '' + def silent_execute(self, code): + """Execute code in t...
IPython Console: More refactoring
py
diff --git a/linshareapi/admin/mail_attachments.py b/linshareapi/admin/mail_attachments.py index <HASH>..<HASH> 100644 --- a/linshareapi/admin/mail_attachments.py +++ b/linshareapi/admin/mail_attachments.py @@ -28,6 +28,7 @@ +import urllib import os import datetime
Fix missing urllib dependency for mail attachment endpoint.
py
diff --git a/chat/indico_chat/plugin.py b/chat/indico_chat/plugin.py index <HASH>..<HASH> 100644 --- a/chat/indico_chat/plugin.py +++ b/chat/indico_chat/plugin.py @@ -123,7 +123,7 @@ class ChatPlugin(IndicoPlugin): return render_plugin_template('event_header.html', event=event, event_chatrooms=chatrooms, ...
Add missing **kwargs to signal handler
py
diff --git a/paperwork_backend/shell_cmd.py b/paperwork_backend/shell_cmd.py index <HASH>..<HASH> 100755 --- a/paperwork_backend/shell_cmd.py +++ b/paperwork_backend/shell_cmd.py @@ -160,15 +160,19 @@ COMMANDS.update(BACKEND_COMMANDS) def main(): - # TODO: Interactive shell - parser = argparse.ArgumentParser...
paperwork-shell: --help: indicates clearly that there is a command "help" giving more details on each command
py
diff --git a/apigpio/utils.py b/apigpio/utils.py index <HASH>..<HASH> 100644 --- a/apigpio/utils.py +++ b/apigpio/utils.py @@ -20,6 +20,7 @@ def Debounce(threshold=100): call if your callback is called twice with that interval. """ threshold *= 1000 + max_tick = 0xFFFFFFFF class _decorated(obje...
Fix callback erroneously filtered out The tick from pigpio wraps aroud after xFFFFFFFF, approximately 1h<I>. When it wraps the delay was not computed correctly, causing all following calls to be filtered out.
py
diff --git a/loky/process_executor.py b/loky/process_executor.py index <HASH>..<HASH> 100644 --- a/loky/process_executor.py +++ b/loky/process_executor.py @@ -388,7 +388,7 @@ def _queue_management_worker(executor_reference, ready = wait([reader], timeout=_timeout_poll) if count == 10: ...
FIX win<I> dead worker detection
py
diff --git a/dvc/version.py b/dvc/version.py index <HASH>..<HASH> 100644 --- a/dvc/version.py +++ b/dvc/version.py @@ -7,7 +7,7 @@ import os import subprocess -_BASE_VERSION = "0.40.2" +_BASE_VERSION = "0.40.3" def _generate_version(base_version):
dvc: bump to <I>
py
diff --git a/great_expectations/data_context/templates.py b/great_expectations/data_context/templates.py index <HASH>..<HASH> 100644 --- a/great_expectations/data_context/templates.py +++ b/great_expectations/data_context/templates.py @@ -11,6 +11,8 @@ PROJECT_HELP_COMMENT = """ # - Read our docs: https://docs.great...
[ENHANCEMENT] Added note for config_version in great_expectations.yml (#<I>) * Added note for config_version in great_expectations.yml
py
diff --git a/sj.py b/sj.py index <HASH>..<HASH> 100644 --- a/sj.py +++ b/sj.py @@ -10,7 +10,7 @@ import sys import ijson -__version__ = '0.2.0' +__version__ = '0.2.1' KEY_RE = re.compile('^[a-z0-9_][\\.a-z0-9_]*[a-z0-9_]*$')
Prep for <I> release
py
diff --git a/redis/client.py b/redis/client.py index <HASH>..<HASH> 100644 --- a/redis/client.py +++ b/redis/client.py @@ -443,10 +443,20 @@ class Redis(threading.local): def get(self, name): """ - Return the value at key ``name``, or None of the key doesn't exist + Return the value at key...
trying to getitem on a key that doesn't exist should raise a KeyError
py
diff --git a/machina/apps/conversation/forms.py b/machina/apps/conversation/forms.py index <HASH>..<HASH> 100644 --- a/machina/apps/conversation/forms.py +++ b/machina/apps/conversation/forms.py @@ -50,6 +50,7 @@ class PostForm(forms.ModelForm): poster=self.user, poster_ip=self.user_ip...
'conversation' forms updated to allow topic & post approval
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,15 +1,17 @@ from distutils.core import setup +VERSION='0.3' + setup( name = 'green', packages = ['green'], - version = '0.2', + version = VERSION, description = 'A plugin for nose that provides the ...
Fixed setup.py so that the version is stored in a variable and all references to it use the variable. Bumped version to <I> as well.
py
diff --git a/loguru/_logger.py b/loguru/_logger.py index <HASH>..<HASH> 100644 --- a/loguru/_logger.py +++ b/loguru/_logger.py @@ -524,8 +524,7 @@ class Logger: file_name = basename(file_path) thread = current_thread() process = current_process() - diff = current_dateti...
Fix elapsed time incorrectly created
py
diff --git a/openquake/db/models.py b/openquake/db/models.py index <HASH>..<HASH> 100644 --- a/openquake/db/models.py +++ b/openquake/db/models.py @@ -1036,6 +1036,19 @@ class ExposureModel(models.Model): db_table = 'oqmif\".\"exposure_model' +class Occupancy(models.Model): + ''' + Asset occupancy da...
added Occupancy class to django model Former-commit-id: 3c<I>f<I>daec0d<I>b0f<I>add7c8f<I>a9f
py
diff --git a/pmxbot/web/viewer.py b/pmxbot/web/viewer.py index <HASH>..<HASH> 100644 --- a/pmxbot/web/viewer.py +++ b/pmxbot/web/viewer.py @@ -105,7 +105,7 @@ class ChannelPage(object): """ Return a key suitable for sorting by month. - >>> ChannelPage.by_date('August, 2012') + >>> ChannelPage.date_key('August...
Fix failing doctest (due to method rename)
py
diff --git a/f5/bigip/resource.py b/f5/bigip/resource.py index <HASH>..<HASH> 100644 --- a/f5/bigip/resource.py +++ b/f5/bigip/resource.py @@ -78,6 +78,7 @@ class GenerationMismatch(Exception): class InvalidForceType(ValueError): pass + class ResourceBase(LazyAttributeMixin, ToDictMixin): """Every resourc...
Fixed flake8 errors as part of PR #<I>
py
diff --git a/mongo_connector/doc_managers/elastic_doc_manager.py b/mongo_connector/doc_managers/elastic_doc_manager.py index <HASH>..<HASH> 100755 --- a/mongo_connector/doc_managers/elastic_doc_manager.py +++ b/mongo_connector/doc_managers/elastic_doc_manager.py @@ -136,8 +136,8 @@ class DocManager(DocManagerBase): ...
Use correct field names for namespace and timestamp when indexing documents in Elasticsearch.
py
diff --git a/OpenSSL/__init__.py b/OpenSSL/__init__.py index <HASH>..<HASH> 100644 --- a/OpenSSL/__init__.py +++ b/OpenSSL/__init__.py @@ -8,5 +8,16 @@ """ pyOpenSSL - A simple wrapper around the OpenSSL library """ -import rand, crypto, SSL, tsafe -from version import __version__ + +import sys +orig = sys.getdlopen...
Hack up module import like mad This is a workaround for the loss of PyCObject
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ test_requirements = ['unittest2'] setup( name='smashrun-client', - version='0.1.0-dev', + version='0.1.0a1', description="A Python client for the Smashrun API", long_description=readme + ...
change version number to a pep<I>-compliant one
py
diff --git a/rtwilio/tests/test_outgoing.py b/rtwilio/tests/test_outgoing.py index <HASH>..<HASH> 100644 --- a/rtwilio/tests/test_outgoing.py +++ b/rtwilio/tests/test_outgoing.py @@ -51,7 +51,7 @@ class SendTest(CreateDataMixin, TestCase): @patch('twilio.rest.resources.sms_messages.SmsMessages.create') def te...
random_unicode_string doesn't work on py3
py
diff --git a/graypy/__init__.py b/graypy/__init__.py index <HASH>..<HASH> 100644 --- a/graypy/__init__.py +++ b/graypy/__init__.py @@ -20,4 +20,4 @@ except ImportError: pass # amqplib is probably not installed -__version__ = (1, 1, 1) +__version__ = (1, 1, 2)
bumping to version `<I>`
py
diff --git a/salt/output/__init__.py b/salt/output/__init__.py index <HASH>..<HASH> 100644 --- a/salt/output/__init__.py +++ b/salt/output/__init__.py @@ -29,14 +29,6 @@ import salt.ext.six as six log = logging.getLogger(__name__) -STATIC = ( - 'yaml_out', - 'text_out', - 'raw_out', - 'json_out', -) - ...
Remove obsolete unreferenced tuple of static outputters. Completes commit 9f<I>a8 / follow-up to PR #<I>.
py
diff --git a/txtorcon/torconfig.py b/txtorcon/torconfig.py index <HASH>..<HASH> 100644 --- a/txtorcon/torconfig.py +++ b/txtorcon/torconfig.py @@ -1066,13 +1066,13 @@ class TorConfig(object): @classmethod @defer.inlineCallbacks - def from_connection(cls, connection): + def from_protocol(cls, proto): ...
from_connectio -> from_protocol to match TorState
py
diff --git a/estnltk/converters/CG3_exporter.py b/estnltk/converters/CG3_exporter.py index <HASH>..<HASH> 100644 --- a/estnltk/converters/CG3_exporter.py +++ b/estnltk/converters/CG3_exporter.py @@ -4,11 +4,12 @@ def _esc_double_quotes(str1): return str1.replace('"', '\\"').replace('\\\\\\"', '\\"').replace('\\\\"...
small fix for CG3_exporter
py
diff --git a/LiSE/LiSE/xcollections.py b/LiSE/LiSE/xcollections.py index <HASH>..<HASH> 100644 --- a/LiSE/LiSE/xcollections.py +++ b/LiSE/LiSE/xcollections.py @@ -223,7 +223,7 @@ class FunctionStore(Signal): def get_source(self, name): return unparse(self._ast.body[self._ast_idx[name]]) - def truth(s...
Fix truth function Yeah, it has to take arguments
py
diff --git a/mlbgame/update.py b/mlbgame/update.py index <HASH>..<HASH> 100644 --- a/mlbgame/update.py +++ b/mlbgame/update.py @@ -152,7 +152,7 @@ def run(hide=False, more=False, start="01-01-2012", end=None): # or some months don't have a 31st day try: ...
Fix bug where wrong scripts were downloaded as game_events
py
diff --git a/dipper/sources/Source.py b/dipper/sources/Source.py index <HASH>..<HASH> 100644 --- a/dipper/sources/Source.py +++ b/dipper/sources/Source.py @@ -795,7 +795,7 @@ class Source: exp = set(expected) got = set(received) if expected != received: - LOG.error('\nExpected head...
get the headers to line up in the log
py
diff --git a/indra/sources/hume/processor.py b/indra/sources/hume/processor.py index <HASH>..<HASH> 100644 --- a/indra/sources/hume/processor.py +++ b/indra/sources/hume/processor.py @@ -2,7 +2,7 @@ import os import rdflib import logging import objectpath -from datetime import datetime +from datetime import datetime...
Add a minute to end time for standard time format
py
diff --git a/airflow/jobs.py b/airflow/jobs.py index <HASH>..<HASH> 100644 --- a/airflow/jobs.py +++ b/airflow/jobs.py @@ -894,7 +894,7 @@ class SchedulerJob(BaseJob): if next_run_date and period_end and period_end <= datetime.now(): next_run = dag.create_dagrun( - run...
[AIRFLOW-<I>] Replace hard-code to DagRun.ID_PREFIX Closes #<I> from morefreeze/patch-1
py
diff --git a/python/pyspark/ml/feature.py b/python/pyspark/ml/feature.py index <HASH>..<HASH> 100755 --- a/python/pyspark/ml/feature.py +++ b/python/pyspark/ml/feature.py @@ -585,6 +585,8 @@ class IDF(JavaEstimator, HasInputCol, HasOutputCol, JavaMLReadable, JavaMLWritab ... (DenseVector([0.0, 1.0]),), (DenseV...
[SPARK-<I>][PYSPARK][ML] PySpark IDFModel missing "idf" property ## What changes were proposed in this pull request? add method idf to IDF in pyspark ## How was this patch tested? add unit test
py
diff --git a/packages/vaex-hdf5/vaex/hdf5/_version.py b/packages/vaex-hdf5/vaex/hdf5/_version.py index <HASH>..<HASH> 100644 --- a/packages/vaex-hdf5/vaex/hdf5/_version.py +++ b/packages/vaex-hdf5/vaex/hdf5/_version.py @@ -1,2 +1,2 @@ -__version_tuple__ = (0, 1, 3, None, None) -__version__ = '0.1.3' +__version_tuple__ ...
Bumped version to <I>
py
diff --git a/squad/ci/backend/null.py b/squad/ci/backend/null.py index <HASH>..<HASH> 100644 --- a/squad/ci/backend/null.py +++ b/squad/ci/backend/null.py @@ -55,8 +55,18 @@ class Backend(object): assumed that the job has been properly submited before, i.e. it has a proper id. - The return va...
ci: document exceptions that can be raised when fetchings
py
diff --git a/putiopy.py b/putiopy.py index <HASH>..<HASH> 100644 --- a/putiopy.py +++ b/putiopy.py @@ -56,7 +56,7 @@ def _set_domain(domain='put.io', scheme='https'): TUS_UPLOAD_URL = upload_base + '/files/' ACCESS_TOKEN_URL = api_base + '/oauth2/access_token' AUTHENTICATION_URL = api_base + '/oauth2/aut...
add fingerprint param for authorization url
py
diff --git a/py3status/modules/imap.py b/py3status/modules/imap.py index <HASH>..<HASH> 100644 --- a/py3status/modules/imap.py +++ b/py3status/modules/imap.py @@ -155,7 +155,7 @@ class Py3status: def _disconnect(self): try: if self.connection is not None: - if self.connection.s...
I'm getting tired :|
py
diff --git a/alerta/app/database.py b/alerta/app/database.py index <HASH>..<HASH> 100644 --- a/alerta/app/database.py +++ b/alerta/app/database.py @@ -623,7 +623,7 @@ class Mongo(object): """ query = {'_id': {'$regex': '^' + id}} - event = self.db.alerts.find_one(query, fields={"event": 1, "_...
fix event name in alert history on status change
py
diff --git a/tests/unique_test.py b/tests/unique_test.py index <HASH>..<HASH> 100644 --- a/tests/unique_test.py +++ b/tests/unique_test.py @@ -37,3 +37,10 @@ def test_unique_nan(): mask = np.isnan(values) assert values[~mask].tolist() == df.x.values[~mask].tolist() # assert indices.tolist() =...
Unit-test for unique in case of dtype object and n/a values (#<I>) * Unit-test for unique in case of object type and missing values (np.nan, None) * make first element None so it is dtype=object * fix: include None, skip nan, since comparison of nan is always false
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ if target in ['linux', 'cygwin']: from distutils import sysconfig cvars = sysconfig.get_config_vars() - if hasattr(sysconfig, 'config_vars') and sysconfig._config_vars is not None: + if has...
leading underscore in _config_vars
py
diff --git a/benchbuild/utils/slurm.py b/benchbuild/utils/slurm.py index <HASH>..<HASH> 100755 --- a/benchbuild/utils/slurm.py +++ b/benchbuild/utils/slurm.py @@ -50,7 +50,7 @@ def __expand_project_versions__(experiment: Experiment) -> Iterable[str]: expanded = [] for _, project_type in project_types.items(...
Slurm: Call sample() during version expansion.
py
diff --git a/cellpy/readers/cellreader.py b/cellpy/readers/cellreader.py index <HASH>..<HASH> 100644 --- a/cellpy/readers/cellreader.py +++ b/cellpy/readers/cellreader.py @@ -1173,6 +1173,8 @@ class CellpyData(object): def load(self, cellpy_file, parent_level=None, return_cls=True): """Loads a cellpy file...
using github-flow now - initial commit
py
diff --git a/faker/__init__.py b/faker/__init__.py index <HASH>..<HASH> 100644 --- a/faker/__init__.py +++ b/faker/__init__.py @@ -27,6 +27,7 @@ AVAILABLE_LOCALES = [ 'pt_BR', 'ru_RU', 'sl_SI', + 'uk_UA', 'zh_CN', 'zh_TW' ]
added uk_UA to general list of locales
py
diff --git a/flask_injector/__init__.py b/flask_injector/__init__.py index <HASH>..<HASH> 100644 --- a/flask_injector/__init__.py +++ b/flask_injector/__init__.py @@ -62,15 +62,13 @@ def wrap_fun(fun: T, injector: Injector) -> T: if hasattr(fun, '__call__') and not isinstance(fun, type): try: ...
(wip) fix: name 'Response' is not defined Aim to resolve #<I>
py
diff --git a/steenzout/object/version.py b/steenzout/object/version.py index <HASH>..<HASH> 100644 --- a/steenzout/object/version.py +++ b/steenzout/object/version.py @@ -16,4 +16,4 @@ # """Version module.""" -__version__ = '1.0.6' +__version__ = '1.0.8'
version increment: <I>.
py
diff --git a/versatileimagefield/fields.py b/versatileimagefield/fields.py index <HASH>..<HASH> 100644 --- a/versatileimagefield/fields.py +++ b/versatileimagefield/fields.py @@ -229,4 +229,4 @@ class PPOIField(CharField): return self.get_prep_value(value) -__all__ = ['VersatileImageField'] +__all__ = ['Ve...
prevents getting warning from mypy and Pycharm prevents getting warning from mypy and Pycharm if `versatileimagefield.fields.PPOIField` is used
py
diff --git a/src/piplint/__init__.py b/src/piplint/__init__.py index <HASH>..<HASH> 100644 --- a/src/piplint/__init__.py +++ b/src/piplint/__init__.py @@ -59,7 +59,7 @@ def check_requirements(requirement_files, strict=False): with open(fname) as fp: for line in fp: line = line.str...
Ignore comments in requirements files.
py
diff --git a/ledger/stores/directory_store.py b/ledger/stores/directory_store.py index <HASH>..<HASH> 100644 --- a/ledger/stores/directory_store.py +++ b/ledger/stores/directory_store.py @@ -38,6 +38,11 @@ class DirectoryStore: with open(self.keyFilePath(key), "w") as f: f.write(value) + def ...
adding method to update contents in directory store
py
diff --git a/test/testsettings.py b/test/testsettings.py index <HASH>..<HASH> 100644 --- a/test/testsettings.py +++ b/test/testsettings.py @@ -19,3 +19,4 @@ # eulxml.forms code relies on django code, which can't be imported # without a settings file configured, even though we don't actually # rely on any of those se...
added non-secret SECRET_KEY
py
diff --git a/tests/refresh_token/test_admin.py b/tests/refresh_token/test_admin.py index <HASH>..<HASH> 100644 --- a/tests/refresh_token/test_admin.py +++ b/tests/refresh_token/test_admin.py @@ -12,7 +12,9 @@ from ..testcases import UserTestCase def skipif_django_version(version): - return pytest.mark.skipif(dj...
Added reason to skipif_django_version decorator
py
diff --git a/mapping/mappings.py b/mapping/mappings.py index <HASH>..<HASH> 100644 --- a/mapping/mappings.py +++ b/mapping/mappings.py @@ -4,6 +4,12 @@ import cvxpy import sys +if cvxpy.__version__ <= "0.4.11": + CVX_SUM = cvxpy.sum_entries +else: + CVX_SUM = cvxpy.sum + + def roller(timestamps, contract_da...
Fix compatibility issues with cvxpy As of release <I> cvxpy.sum_entries has been replaced by cvxpy.sum. This bridges the naming difference.
py
diff --git a/spyder/widgets/dependencies.py b/spyder/widgets/dependencies.py index <HASH>..<HASH> 100644 --- a/spyder/widgets/dependencies.py +++ b/spyder/widgets/dependencies.py @@ -145,7 +145,9 @@ class DependenciesDialog(QDialog): "them.<br><br>" "<b>Not...
change of the label in the dependencies dialog to specify the need for restart Spyder to update dependencies
py
diff --git a/ceph_deploy/mds.py b/ceph_deploy/mds.py index <HASH>..<HASH> 100644 --- a/ceph_deploy/mds.py +++ b/ceph_deploy/mds.py @@ -221,7 +221,9 @@ def make(parser): metavar='SUBCOMMAND', choices=[ 'create', + 'destroy', ], + help='create or destroy', ...
mds: help for subcommand
py
diff --git a/colorama/winterm.py b/colorama/winterm.py index <HASH>..<HASH> 100644 --- a/colorama/winterm.py +++ b/colorama/winterm.py @@ -46,6 +46,8 @@ class WinTerm(object): self._fore = fore if light: self._style |= WinStyle.BRIGHT + else: + self._style &= ~WinStyle.B...
Fixed bug with Fore.Reset after any LIGHT_EX
py
diff --git a/pygam/pygam.py b/pygam/pygam.py index <HASH>..<HASH> 100644 --- a/pygam/pygam.py +++ b/pygam/pygam.py @@ -977,6 +977,14 @@ class GAM(Core): if not self._is_fitted or len(self.coef_) != sum(self._n_coeffs): self.coef_ = np.ones(m) * np.sqrt(EPS) # allow more training + # m...
add better initial coef guess. solves diverging optimization for poisson
py
diff --git a/examples/python/wait_for_ready/wait_for_ready_example.py b/examples/python/wait_for_ready/wait_for_ready_example.py index <HASH>..<HASH> 100644 --- a/examples/python/wait_for_ready/wait_for_ready_example.py +++ b/examples/python/wait_for_ready/wait_for_ready_example.py @@ -33,8 +33,12 @@ _ONE_DAY_IN_SECOND...
Fix wait_for_ready example for ipv4-only environments like Kokoro
py
diff --git a/anytemplate/engines/base.py b/anytemplate/engines/base.py index <HASH>..<HASH> 100644 --- a/anytemplate/engines/base.py +++ b/anytemplate/engines/base.py @@ -85,7 +85,6 @@ class BaseEngine(object): _name = "base" _file_extensions = [] - _supported = False _priority = 99 # Lowest priori...
remove the member _supported and change the behavior of the class method supports in anytemplate.engines.base.BaseEngine
py
diff --git a/django_admin_bootstrapped/renderers.py b/django_admin_bootstrapped/renderers.py index <HASH>..<HASH> 100644 --- a/django_admin_bootstrapped/renderers.py +++ b/django_admin_bootstrapped/renderers.py @@ -6,7 +6,10 @@ from django.contrib.admin.widgets import (AdminDateWidget, AdminTimeWidget, from django.for...
Cope with django-bootstrap3 api change bootstrap3.html was moved to bootstrap3.utils See change: <URL>
py
diff --git a/aegea/util/printing.py b/aegea/util/printing.py index <HASH>..<HASH> 100644 --- a/aegea/util/printing.py +++ b/aegea/util/printing.py @@ -204,6 +204,8 @@ def format_cell(cell): if isinstance(cell, timedelta): from babel import dates cell = dates.format_timedelta(-cell, add_direction=...
pretty-print dicts as json in tables
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,6 +3,7 @@ from distutils.core import setup setup( name='angr', version='0.8.0', + description='The next-generation binary analysis platform from UC Santa Barbara\'s Seclab!', packages=['angr', 'angr.surve...
Adding `description` to `setup.py` Adding `description` to `setup.py` to be picked up by `pypi`
py
diff --git a/andes/utils/streaming.py b/andes/utils/streaming.py index <HASH>..<HASH> 100644 --- a/andes/utils/streaming.py +++ b/andes/utils/streaming.py @@ -356,7 +356,7 @@ class Streaming(object): k = len(self.system.VarOut.t) Varvgs = {'t': t, 'k': k, - ...
Correct shape of the streaming Varvgs
py
diff --git a/scripts/data_IP_audit.py b/scripts/data_IP_audit.py index <HASH>..<HASH> 100644 --- a/scripts/data_IP_audit.py +++ b/scripts/data_IP_audit.py @@ -6,7 +6,7 @@ pardir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) sys.path.append(pardir) from extras.data_audit_wrapper import IP_verified...
Made data audit point to entire inasafe_data tree and added new license files where needed. This matches inasafe_data version <I>
py
diff --git a/tinyscript/parser.py b/tinyscript/parser.py index <HASH>..<HASH> 100644 --- a/tinyscript/parser.py +++ b/tinyscript/parser.py @@ -50,6 +50,7 @@ def initialize(glob, add_wizard=False, ext_logging=False, noargs_action=None, + post_actions=True, ...
Added option for performing post actions at interrupt
py