diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/intern/resource/boss/resource.py b/intern/resource/boss/resource.py index <HASH>..<HASH> 100644 --- a/intern/resource/boss/resource.py +++ b/intern/resource/boss/resource.py @@ -14,7 +14,12 @@ from intern.resource import Resource from abc import abstractmethod +from enum import Enum +class CacheMode(...
Adds CacheMode Enum class to resources
py
diff --git a/quarkc/command.py b/quarkc/command.py index <HASH>..<HASH> 100644 --- a/quarkc/command.py +++ b/quarkc/command.py @@ -180,7 +180,8 @@ def main(args): else: assert False except compiler.QuarkError as err: - shell.command_log.warn("") + if not args["run"]: + ...
Get rid of silly logging not configured warning
py
diff --git a/airtest/core/android/yosemite.py b/airtest/core/android/yosemite.py index <HASH>..<HASH> 100644 --- a/airtest/core/android/yosemite.py +++ b/airtest/core/android/yosemite.py @@ -37,7 +37,13 @@ class Yosemite(object): installed_version = self.adb.get_package_version(package) LOGGING.info("...
If the installation of Yosemite.apk fails, but the phone has an old version, the installation is not mandatory (cherry picked from commit 1bb<I>d4ccd5f<I>dc<I>ba<I>f5ee6f) (cherry picked from commit <I>d9eb<I>ae<I>f<I>d8ecb<I>aa<I>a<I>b<I>be4c)
py
diff --git a/salt/modules/pacman.py b/salt/modules/pacman.py index <HASH>..<HASH> 100644 --- a/salt/modules/pacman.py +++ b/salt/modules/pacman.py @@ -223,7 +223,7 @@ def refresh_db(): def install(name=None, - refresh=True, + refresh=False, pkgs=None, sources=None, ...
[salt] Pacman shouldn't default to refresh Because refreshing requires you to update the entire system and installing should by default limited to only the package you are installing.
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -25,8 +25,10 @@ on_rtd = os.environ.get('READTHEDOCS', None) == 'True' if on_rtd: import pip pip.main(['install', 'sphinx_bootstrap_theme']) + pip.main(['install', 'recommonmark']) import sphin...
Enable using markdown for Sphinx docs (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,6 @@ setup( ], extras_require={ 'development': [ - 'webtest', 'Sphinx', 'repoze.sphinx.autointerface', 'flake8', @@ -37,8 +36,6 @@ setup( ...
remove some cargo-culted dev-dependencies
py
diff --git a/ocrd/ocrd/workspace.py b/ocrd/ocrd/workspace.py index <HASH>..<HASH> 100644 --- a/ocrd/ocrd/workspace.py +++ b/ocrd/ocrd/workspace.py @@ -186,6 +186,9 @@ class Workspace(): try: ocrd_file = next(self.mets.find_files(ID=ID)) except StopIteration: + i...
Workspace.remove_file: no exception if empty but ID was a regex
py
diff --git a/web3/iban.py b/web3/iban.py index <HASH>..<HASH> 100644 --- a/web3/iban.py +++ b/web3/iban.py @@ -2,9 +2,7 @@ import functools import re from eth_utils import ( - coerce_args_to_text, is_string, - pad_left, to_checksum_address, ) @@ -14,7 +12,7 @@ from web3.utils.validation import ( ...
upgrade iban.py for eth-utils v1b2 compatibility
py
diff --git a/src/transformers/models/auto/configuration_auto.py b/src/transformers/models/auto/configuration_auto.py index <HASH>..<HASH> 100644 --- a/src/transformers/models/auto/configuration_auto.py +++ b/src/transformers/models/auto/configuration_auto.py @@ -389,7 +389,13 @@ class _LazyConfigMapping(OrderedDict): ...
Allow the same config in the auto mapping (#<I>)
py
diff --git a/bson/son.py b/bson/son.py index <HASH>..<HASH> 100644 --- a/bson/son.py +++ b/bson/son.py @@ -35,7 +35,8 @@ class SON(dict): =================================== ============= =================== None null both bool b...
Clarify int/long encode/decode behavior PYTHON-<I>
py
diff --git a/src/toil/utils/toilStatus.py b/src/toil/utils/toilStatus.py index <HASH>..<HASH> 100644 --- a/src/toil/utils/toilStatus.py +++ b/src/toil/utils/toilStatus.py @@ -82,10 +82,12 @@ def main(): sys.exit(0) toilState = ToilState(jobStore, rootJob ) - - failedJobs = [ job for job in to...
Fix attribute error in toil stats for incomplete runs (resolves #<I>)
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.82.4" +_BASE_VERSION = "0.82.5" def _generate_version(base_version):
dvc: bump to <I>
py
diff --git a/spyder/utils/site/sitecustomize.py b/spyder/utils/site/sitecustomize.py index <HASH>..<HASH> 100644 --- a/spyder/utils/site/sitecustomize.py +++ b/spyder/utils/site/sitecustomize.py @@ -280,13 +280,6 @@ class IPyTesProgram(TestProgram): TestProgram.__init__(self, *args, **kwargs) unittest.main =...
Sitecustomize: Remove code to filter warning in ipykernel.datapub
py
diff --git a/caravel/viz.py b/caravel/viz.py index <HASH>..<HASH> 100755 --- a/caravel/viz.py +++ b/caravel/viz.py @@ -1304,9 +1304,8 @@ class SunburstViz(BaseViz): metric = self.form_data.get('metric') secondary_metric = self.form_data.get('secondary_metric') if metric == secondary_metric: -...
viz: make sunburst work again (#<I>) By using a different method for renaming the metric columns
py
diff --git a/zk_shell/xcmd.py b/zk_shell/xcmd.py index <HASH>..<HASH> 100644 --- a/zk_shell/xcmd.py +++ b/zk_shell/xcmd.py @@ -141,7 +141,9 @@ def ensure_params_with_parser(parser, func): params = parser.parse_args(shlex.split(args[1])) return func(args[0], params) except (ShellParser...
Show help when a command has missing (or wrong) parameters
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ f.close() setup( name='django-cron', - version='0.2.1', + version='0.2.2', author='Sumit Chachra', author_email='chachra@tivix.com', url='http://github.com/tivix/django-cron', @@ -32...
Fixed and put django-common-helpers>=<I> Bumped up version also.
py
diff --git a/examples/yoti_example_flask/app.py b/examples/yoti_example_flask/app.py index <HASH>..<HASH> 100644 --- a/examples/yoti_example_flask/app.py +++ b/examples/yoti_example_flask/app.py @@ -37,7 +37,9 @@ def auth(): activity_details = client.get_activity_details(request.args['token']) user_profile = ...
[SDK-<I>]: Added check for when selfie is not present
py
diff --git a/tinyscript/helpers/path.py b/tinyscript/helpers/path.py index <HASH>..<HASH> 100644 --- a/tinyscript/helpers/path.py +++ b/tinyscript/helpers/path.py @@ -8,7 +8,7 @@ from shutil import rmtree from six import string_types from tempfile import gettempdir, NamedTemporaryFile as TempFile -from .utils impor...
Fixed Python2-related bug in helpers.path
py
diff --git a/qiskit/circuit/quantumcircuit.py b/qiskit/circuit/quantumcircuit.py index <HASH>..<HASH> 100644 --- a/qiskit/circuit/quantumcircuit.py +++ b/qiskit/circuit/quantumcircuit.py @@ -2016,10 +2016,11 @@ class QuantumCircuit: if isinstance(parameters, dict): # unroll the parameter dictionar...
put call to unsorted params outside of loop (#<I>)
py
diff --git a/asv/commands/run.py b/asv/commands/run.py index <HASH>..<HASH> 100644 --- a/asv/commands/run.py +++ b/asv/commands/run.py @@ -198,7 +198,7 @@ class Run(Command): commit_hashes = repo.get_new_branch_commits(conf.branches, []) elif isinstance(range_spec, six.string_types) and range_spec...
address inline suggestsions from @pv's review
py
diff --git a/squad/frontend/tests.py b/squad/frontend/tests.py index <HASH>..<HASH> 100644 --- a/squad/frontend/tests.py +++ b/squad/frontend/tests.py @@ -83,19 +83,20 @@ class TestResultTable(list): suite_id, name, SUM(CASE when result is null then 1 else 0 end) as skips, - SU...
frontend: "All tests": fix sorting in the presence of xfail Tests are ordered by decreasing number of fails, xfails, skips, and passes.
py
diff --git a/flask_venom/__init__.py b/flask_venom/__init__.py index <HASH>..<HASH> 100644 --- a/flask_venom/__init__.py +++ b/flask_venom/__init__.py @@ -78,6 +78,7 @@ class Venom(venom.rpc.Venom): self.blueprint = app else: self._init_app(app) + self.app = app def ...
Fix flask_venom.Venom not recording routes in some cases
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -83,8 +83,8 @@ setup(name=constants.NAME, 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.5', - ...
small fix with commas in setup.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,13 +7,13 @@ with open('README.txt') as file: setup(name='MinimalModbus', version='0.1', - description='Simple Modbus RTU implementation', - long_description = long_description + description='Simple Modbus R...
Improved the setup.py script
py
diff --git a/windpowerlib/wind_turbine_cluster.py b/windpowerlib/wind_turbine_cluster.py index <HASH>..<HASH> 100644 --- a/windpowerlib/wind_turbine_cluster.py +++ b/windpowerlib/wind_turbine_cluster.py @@ -101,8 +101,8 @@ class WindTurbineCluster(object): """ return sum(wind_farm.installed_power for ...
Set smoothing to False as default
py
diff --git a/salt/returners/mongo_return.py b/salt/returners/mongo_return.py index <HASH>..<HASH> 100644 --- a/salt/returners/mongo_return.py +++ b/salt/returners/mongo_return.py @@ -2,10 +2,17 @@ Return data to a mongodb server This is the default interface for returning data for the butter statd subsytem + +Requi...
Don't complain about missing pymongo
py
diff --git a/salt/states/ansiblegate.py b/salt/states/ansiblegate.py index <HASH>..<HASH> 100644 --- a/salt/states/ansiblegate.py +++ b/salt/states/ansiblegate.py @@ -67,7 +67,7 @@ class AnsibleState(object): for mod_name, mod_params in kwargs.items(): args, kwargs = self.get_args(mod_params) ...
Mimic the direct call of the module to reuse internal arg parsing
py
diff --git a/core/eolearn/core/eonode.py b/core/eolearn/core/eonode.py index <HASH>..<HASH> 100644 --- a/core/eolearn/core/eonode.py +++ b/core/eolearn/core/eonode.py @@ -42,7 +42,7 @@ class EONode: if self.name is None: super().__setattr__('name', self.task.__class__.__name__) - super()....
node uid generated from task class name, not custom name
py
diff --git a/drf_fsm_transitions/viewset_mixins.py b/drf_fsm_transitions/viewset_mixins.py index <HASH>..<HASH> 100644 --- a/drf_fsm_transitions/viewset_mixins.py +++ b/drf_fsm_transitions/viewset_mixins.py @@ -13,7 +13,7 @@ def get_transition_viewset_method(transition_name): transition_method(by=self.reques...
switch to save_after_transition
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -138,9 +138,6 @@ setup( ('share/man/man7', ['doc/man/salt.7', ]), - (mod_path, - ['salt/modules/cytest.pyx', - ]),...
remove cytest from setup.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ with open('README.rst') as file: setup( name = 'fritzconnection', - version = '0.8.2', + version = '0.8.3', packages = find_packages(), license = 'MIT', description = 'Communicate with...
setup.py also adapted to <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ if __name__ == "__main__": url="https://github.com/Salamek/cron-descriptor", long_description=long_description, long_description_content_type='text/markdown', - packages=setupto...
Removed tests package from installation This is fairly standard, and in fact some build system with fail builds that try to install tests packages.
py
diff --git a/lib/emir/recipes/aiv/mask.py b/lib/emir/recipes/aiv/mask.py index <HASH>..<HASH> 100644 --- a/lib/emir/recipes/aiv/mask.py +++ b/lib/emir/recipes/aiv/mask.py @@ -201,6 +201,9 @@ def compute_fwhm_global(data, center, box): except ValueError as error: _logger.warning("%s", error) retur...
Catch more errors in fwhm
py
diff --git a/perft.py b/perft.py index <HASH>..<HASH> 100755 --- a/perft.py +++ b/perft.py @@ -152,7 +152,6 @@ class PerftTestCase(unittest.TestCase): self.assertEqual(perft(board, 2), 628) self.assertEqual(perft(board, 3), 12858) self.assertEqual(perft(board, 4), 405636) - self.assert...
Pypy on Travis CI can not make perft 5 in <I> minutes
py
diff --git a/examples/receive.py b/examples/receive.py index <HASH>..<HASH> 100644 --- a/examples/receive.py +++ b/examples/receive.py @@ -5,7 +5,16 @@ import notifs def print_notification(title, message): - print "Notification received: {0}: {1}".format(title, message) + print "Print notification received: ...
Expand example This makes it more clear how to add more queues ("channels") to the exchange to receive copies of the message.
py
diff --git a/src/metpy/calc/indices.py b/src/metpy/calc/indices.py index <HASH>..<HASH> 100644 --- a/src/metpy/calc/indices.py +++ b/src/metpy/calc/indices.py @@ -126,20 +126,15 @@ def mean_pressure_weighted(pressure, *args, height=None, bottom=None, depth=None Renamed ``heights`` parameter to ``height`` ...
Refactor mean_pressure_weighted() Replaced loop using `enumerate` with a list comprehension, plus some general Python code cleanup.
py
diff --git a/condoor/version.py b/condoor/version.py index <HASH>..<HASH> 100644 --- a/condoor/version.py +++ b/condoor/version.py @@ -1,3 +1,3 @@ """Version information.""" -__version__ = '1.0.16' +__version__ = '1.0.17'
Bumping version number to <I>
py
diff --git a/octodns/provider/azuredns.py b/octodns/provider/azuredns.py index <HASH>..<HASH> 100644 --- a/octodns/provider/azuredns.py +++ b/octodns/provider/azuredns.py @@ -337,6 +337,8 @@ class AzureProvider(BaseProvider): ) return self._dns_client_handle + def _set_dns_client(...
Add set DNS client logic if needed for testing
py
diff --git a/examples/ccxt.pro/py/binance-watch-spot-futures-balances-continuously.py b/examples/ccxt.pro/py/binance-watch-spot-futures-balances-continuously.py index <HASH>..<HASH> 100644 --- a/examples/ccxt.pro/py/binance-watch-spot-futures-balances-continuously.py +++ b/examples/ccxt.pro/py/binance-watch-spot-future...
examples/ccxt.pro/py/binance-watch-spot-futures-balances-continuously.py linting
py
diff --git a/tests/test_ndict.py b/tests/test_ndict.py index <HASH>..<HASH> 100644 --- a/tests/test_ndict.py +++ b/tests/test_ndict.py @@ -21,6 +21,12 @@ def test_ndict(): assert 'x' in nd assert 'y' not in nd + # Mutability + nd2 = ndict({'x': 1}) + assert nd2.x == 1 + nd2.x = 2 + assert nd2...
test mutability of ndict
py
diff --git a/apitools/base/py/list_pager_test.py b/apitools/base/py/list_pager_test.py index <HASH>..<HASH> 100644 --- a/apitools/base/py/list_pager_test.py +++ b/apitools/base/py/list_pager_test.py @@ -192,7 +192,6 @@ class ListPagerTest(unittest2.TestCase): self._AssertInstanceSequence(results, 5) - ...
Delete extra line from list_pager_test.
py
diff --git a/pylas/lasdatas/base.py b/pylas/lasdatas/base.py index <HASH>..<HASH> 100644 --- a/pylas/lasdatas/base.py +++ b/pylas/lasdatas/base.py @@ -362,6 +362,8 @@ class LasBase(object): self.write_to(destination, do_compress=do_compress) def _compress_with_laszip_executable(self, out_stream): + ...
raise exception when trying to compress LAS with extrabyte using laszip I don't know yet why but it produces invalid lazfiles
py
diff --git a/genepattern/taskwidget.py b/genepattern/taskwidget.py index <HASH>..<HASH> 100644 --- a/genepattern/taskwidget.py +++ b/genepattern/taskwidget.py @@ -1,7 +1,6 @@ import inspect import json import os -import tempfile from urllib.request import Request, urlopen from urllib.error import HTTPError from g...
Updated GP upload callback to support ipyuploads widget
py
diff --git a/ndb/__init__.py b/ndb/__init__.py index <HASH>..<HASH> 100644 --- a/ndb/__init__.py +++ b/ndb/__init__.py @@ -1,6 +1,6 @@ """NDB -- A new datastore API for the Google App Engine Python runtime.""" -__version__ = '1.0.3+' +__version__ = '1.0.4' __all__ = []
Set version to <I> (even though things may still change).
py
diff --git a/udata/core/user/models.py b/udata/core/user/models.py index <HASH>..<HASH> 100644 --- a/udata/core/user/models.py +++ b/udata/core/user/models.py @@ -223,6 +223,7 @@ class User(WithMetrics, UserMixin, db.Document): self.avatar_url = None self.website = None self.about = None + ...
Clean user extras field on user delete
py
diff --git a/openquake/calculators/extract.py b/openquake/calculators/extract.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/extract.py +++ b/openquake/calculators/extract.py @@ -733,3 +733,17 @@ def extract_event_info(dstore, eidx): yield key, val yield 'rlzi', rlzi yield 'gsim', repr(gs...
Added extract/ruptures_within [skip CI] Former-commit-id: <I>feb4afe4adcb1fab<I>c<I>ff3d<I>f7da<I>f
py
diff --git a/libusb1.py b/libusb1.py index <HASH>..<HASH> 100644 --- a/libusb1.py +++ b/libusb1.py @@ -703,16 +703,16 @@ except AttributeError: else: libusb_error_name.argtypes = [c_int] libusb_error_name.restype = c_char_p -try: - #char *libusb_strerror(enum libusb_error errcode); - libusb_strerror = ...
Replace libusb_strerror binding with a fallback. The objective in dropping existing wrapper for this function is to not mislead user in thinking support will be added for such functions.
py
diff --git a/salt/modules/cloud.py b/salt/modules/cloud.py index <HASH>..<HASH> 100644 --- a/salt/modules/cloud.py +++ b/salt/modules/cloud.py @@ -8,7 +8,12 @@ import os import logging # Import salt libs -import salt.cloud +try: + import salt.cloud + HAS_SALTCLOUD = True +except ImportError: + HAS_SALTCLOU...
don't load salt cloud if it won't import
py
diff --git a/pyensembl/download_cache.py b/pyensembl/download_cache.py index <HASH>..<HASH> 100644 --- a/pyensembl/download_cache.py +++ b/pyensembl/download_cache.py @@ -163,9 +163,9 @@ class DownloadCache(object): the result of downloading to be a decompressed file) """ for ext in [".gz", "...
changed local_filename->filename in download_cache compression helper
py
diff --git a/tests/unit/topotools/TopotoolsTest.py b/tests/unit/topotools/TopotoolsTest.py index <HASH>..<HASH> 100644 --- a/tests/unit/topotools/TopotoolsTest.py +++ b/tests/unit/topotools/TopotoolsTest.py @@ -113,12 +113,11 @@ class TopotoolsTest: net1['pore.test2'] = 10 net2['pore.test3'] = True ...
fixing the tests for merge_networks
py
diff --git a/gaugetest.py b/gaugetest.py index <HASH>..<HASH> 100644 --- a/gaugetest.py +++ b/gaugetest.py @@ -538,6 +538,9 @@ def test_boundary(): floor = Boundary(iter([zero_seg]), operator.gt) assert ceil.best is min assert floor.best is max + # repr + assert repr(ceil) == ('<Boundary seg={0}, c...
test coverage = <I>%
py
diff --git a/bokeh/pyplot.py b/bokeh/pyplot.py index <HASH>..<HASH> 100644 --- a/bokeh/pyplot.py +++ b/bokeh/pyplot.py @@ -60,6 +60,7 @@ def show_bokeh(figure=None, filename=None, server=None, notebook=False): for axes in figure.axes: plot = mplsupport.axes2plot(axes) + plotting._config["curplot"...
Small hack to pyplot.py to set 'curplot' in bokeh.plotting. (Needed by show() in some cases)
py
diff --git a/pgextras/sql_constants.py b/pgextras/sql_constants.py index <HASH>..<HASH> 100644 --- a/pgextras/sql_constants.py +++ b/pgextras/sql_constants.py @@ -424,16 +424,6 @@ TABLE_INDEXES_SIZE = """ ORDER BY pg_indexes_size(c.oid) DESC; """ -PG_STATS_NOT_AVAILABLE = """ - pg_stat_statements extension n...
This was an exception message that was moved to the actual exception.
py
diff --git a/ccy/core/country.py b/ccy/core/country.py index <HASH>..<HASH> 100644 --- a/ccy/core/country.py +++ b/ccy/core/country.py @@ -12,7 +12,7 @@ __all__ = ['country', 'countryccy', 'set_new_country', # using ISO 3166-1 alpha-2 country codes # see http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 # -eurozone = ...
Added Lithuania to eurozone countries list Lithuania is an Eurozone country as of <I>-<I>-<I>
py
diff --git a/openid/store/filestore.py b/openid/store/filestore.py index <HASH>..<HASH> 100644 --- a/openid/store/filestore.py +++ b/openid/store/filestore.py @@ -214,7 +214,8 @@ class FileOpenIDStore(OpenIDStore): file_obj, tmp = self._mktemp() try: file_obj.write(auth_key) - ...
[project @ store.filestore.createAuthKey: close before rename.] Fixes a "[Errno <I>] Permission denied" in python-win.
py
diff --git a/examples/google_spreadsheet.py b/examples/google_spreadsheet.py index <HASH>..<HASH> 100755 --- a/examples/google_spreadsheet.py +++ b/examples/google_spreadsheet.py @@ -40,7 +40,7 @@ import datetime import Adafruit_DHT import gspread -from oauth2client.client import SignedJwtAssertionCredentials +from...
Fix deprecated SignedJwtAssertionCredentials
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,15 +2,15 @@ from setuptools import setup with open('requirements.txt', 'rb') as f: - requirements = [i.strip().replace('==', '>=') for i in f] + requirements = [i.strip() for i in f] setup(name='nameko', ...
making setup.py treat requirements.txt without magic
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ if version_info < (3, 5): setup( name='wikitextparser', # Scheme: [N!]N(.N)*[{a|b|rc}N][.postN][.devN] - version='0.13.0.dev1', + version='0.13.1.dev1', description='A simple, purely python...
version='<I>.dev1 I had set the wrong version number in the previous commmit.
py
diff --git a/simpleai/search/viewers.py b/simpleai/search/viewers.py index <HASH>..<HASH> 100644 --- a/simpleai/search/viewers.py +++ b/simpleai/search/viewers.py @@ -55,6 +55,11 @@ class WebViewer(ConsoleViewer): self.port = port self.paused = True self.events = [] + self.current_frin...
Storing last events information, will need it to build the graph
py
diff --git a/blockstack_cli_0.14.1/blockstack_client/config.py b/blockstack_cli_0.14.1/blockstack_client/config.py index <HASH>..<HASH> 100644 --- a/blockstack_cli_0.14.1/blockstack_client/config.py +++ b/blockstack_cli_0.14.1/blockstack_client/config.py @@ -87,6 +87,11 @@ if os.environ.get("BLOCKSTACK_TEST", None) is ...
TX_MIN_CONFIRMATIONS is 6 in production, but 0 in testing (since we use bitcoind -regtest)
py
diff --git a/vsgen/__main__.py b/vsgen/__main__.py index <HASH>..<HASH> 100644 --- a/vsgen/__main__.py +++ b/vsgen/__main__.py @@ -31,7 +31,7 @@ def main(argv=None): pylogger = VSGLogger() # Construct a command line parser and parse the command line - args = VSGSuite.make_parser(description='Executes the...
Corrected package name in argparse construction.
py
diff --git a/bulbs/__init__.py b/bulbs/__init__.py index <HASH>..<HASH> 100644 --- a/bulbs/__init__.py +++ b/bulbs/__init__.py @@ -1 +1 @@ -__version__ = "0.3.11" +__version__ = "0.3.12"
upped version number for pypi
py
diff --git a/grab/spider.py b/grab/spider.py index <HASH>..<HASH> 100644 --- a/grab/spider.py +++ b/grab/spider.py @@ -240,7 +240,7 @@ class Spider(object): Stop the task which was executed too many times. """ - if task.task_try_count >= self.task_try_limit: + if task.task_try_count > ...
Fix bug in task number processing in spider
py
diff --git a/tests/unit/pyobjects_test.py b/tests/unit/pyobjects_test.py index <HASH>..<HASH> 100644 --- a/tests/unit/pyobjects_test.py +++ b/tests/unit/pyobjects_test.py @@ -82,6 +82,18 @@ import salt://map.sls Pkg.removed("samba-imported", names=[Samba.server, Samba.client]) ''' +recursive_map_template = '''#!pyo...
Add test to prove that recursive imports are currently broken Refs #<I> This also exposes some other issues with the Registry being in an inconsistent state when an exception occurs when we are rendering.
py
diff --git a/pysatMagVect/__init__.py b/pysatMagVect/__init__.py index <HASH>..<HASH> 100644 --- a/pysatMagVect/__init__.py +++ b/pysatMagVect/__init__.py @@ -8,12 +8,12 @@ del here on_rtd = os.environ.get('ONREADTHEDOCS') == 'True' if not on_rtd: - from . import igrf + from pysatMagVect import igrf else: ...
STY: Removed relative imports
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 setup( name='raincloudy', packages=['raincloudy'], - version='0.0.2', + version='0.0.3', description='A Python library to communicate with Melnor' + ...
Bump dev version <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,6 +5,7 @@ import re import shutil import sys from setuptools import setup, find_packages +from pkg_resources import get_distribution, DistributionNotFound def read(*names, **kwargs): @@ -15,6 +16,13 @@ def read(*nam...
make vision depend on pillow-simd if already installed (#<I>) * make vision depend on pillow-simd if already installed * actually make pillow-simd optional
py
diff --git a/test_pem.py b/test_pem.py index <HASH>..<HASH> 100644 --- a/test_pem.py +++ b/test_pem.py @@ -84,6 +84,17 @@ class TestCertificateOptionsFromFiles(object): ) assert 2 == len(ctxFactory.extraCertChain) + def test_worksWithChainCertsFirst(self, tmpdir): + pytest.importorskip('tw...
A test case for allowing chain certificates to come first.
py
diff --git a/emma2/msm/analysis/sparse/assessment.py b/emma2/msm/analysis/sparse/assessment.py index <HASH>..<HASH> 100644 --- a/emma2/msm/analysis/sparse/assessment.py +++ b/emma2/msm/analysis/sparse/assessment.py @@ -106,7 +106,7 @@ def is_reversible(T, mu=None, tol=1e-15): T = T.tocsr() if mu is None...
[msm/analysis] Use backward iteration in is_reversible method to comopute stationary distribution
py
diff --git a/tests/functional_tests/test_plot.py b/tests/functional_tests/test_plot.py index <HASH>..<HASH> 100644 --- a/tests/functional_tests/test_plot.py +++ b/tests/functional_tests/test_plot.py @@ -11,7 +11,7 @@ def test_plot(): ds.compute("adev") p = at.Plot(no_display=True) p.plot(ds, errorbars=Tr...
can't show() from automated test
py
diff --git a/mplotqueries/mplotqueries.py b/mplotqueries/mplotqueries.py index <HASH>..<HASH> 100755 --- a/mplotqueries/mplotqueries.py +++ b/mplotqueries/mplotqueries.py @@ -82,8 +82,8 @@ class MongoPlotQueries(object): parser.add_argument('--type', action='store', default='duration', choices=self.plot_types....
added some help text to group/label.
py
diff --git a/percy/environment.py b/percy/environment.py index <HASH>..<HASH> 100644 --- a/percy/environment.py +++ b/percy/environment.py @@ -58,7 +58,7 @@ class Environment(object): def _get_origin_url(self): process = subprocess.Popen( ['git', 'config', '--get', 'remote.origin.url'], stdou...
Attempt to fix python 3 encoding issues.
py
diff --git a/python/phonenumbers/__init__.py b/python/phonenumbers/__init__.py index <HASH>..<HASH> 100644 --- a/python/phonenumbers/__init__.py +++ b/python/phonenumbers/__init__.py @@ -146,7 +146,7 @@ from .phonenumbermatcher import PhoneNumberMatch, PhoneNumberMatcher, Leniency # Version number is taken from the ...
Prep for <I> release
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -18,12 +18,12 @@ setup( 'efopen' ], install_requires=[ - 'boto3==1.16.39', - 'click==7.1.2', + 'boto3<=1.16.39', + 'click<=7.1.2', 'PyYAML<=5.3.1', - 'cfn-lint==0....
Update setup.py Loosen all package version requirements
py
diff --git a/tcod/console.py b/tcod/console.py index <HASH>..<HASH> 100644 --- a/tcod/console.py +++ b/tcod/console.py @@ -1246,6 +1246,7 @@ def load_xp( .. versionadded:: 12.4 Example:: + import tcod from numpy import np @@ -1298,6 +1299,7 @@ def save_xp( .. versionadded:: 12.4 ...
Fix example blocks formatting. I always forget to add the extra blank line here.
py
diff --git a/tools/pyboard.py b/tools/pyboard.py index <HASH>..<HASH> 100644 --- a/tools/pyboard.py +++ b/tools/pyboard.py @@ -89,8 +89,8 @@ class Pyboard: return self.exec(pyfile) def get_time(self): - t = str(self.exec('pyb.time()'), encoding='ascii').strip().split()[1].split(':') - retu...
tools: Update pyboard.py to work with latest changes to RTC.
py
diff --git a/oauth_django_example/twitter/views.py b/oauth_django_example/twitter/views.py index <HASH>..<HASH> 100644 --- a/oauth_django_example/twitter/views.py +++ b/oauth_django_example/twitter/views.py @@ -7,8 +7,8 @@ from django.contrib.auth.decorators import login_required from twython import Twython from twit...
Oh yeah, forgot to strip these...
py
diff --git a/django_uwsgi/urls.py b/django_uwsgi/urls.py index <HASH>..<HASH> 100755 --- a/django_uwsgi/urls.py +++ b/django_uwsgi/urls.py @@ -1,8 +1,8 @@ from django.conf.urls import patterns, url from . import views -urlpatterns = patterns('', +urlpatterns = [ url(r'^$', views.UwsgiStatus.as_view(), name='uw...
Resolve compatibility issue: django.conf.urls.patterns() is deprecated and will be removed in Django <I>
py
diff --git a/edisgo/tools/pypsa_io.py b/edisgo/tools/pypsa_io.py index <HASH>..<HASH> 100644 --- a/edisgo/tools/pypsa_io.py +++ b/edisgo/tools/pypsa_io.py @@ -295,7 +295,7 @@ def mv_to_pypsa(network): generator['name'].append(repr(gen)) generator['bus'].append(bus_name) generator['control'].a...
Correct p_nom in pypsa representation of storages
py
diff --git a/tcex/testing/validate_data.py b/tcex/testing/validate_data.py index <HASH>..<HASH> 100644 --- a/tcex/testing/validate_data.py +++ b/tcex/testing/validate_data.py @@ -853,7 +853,7 @@ class ThreatConnect(object): unique_id=entity.get('id'), ) elif tc_ent...
changing how urls are encoded during testing
py
diff --git a/src/livestreamer_cli/argparser.py b/src/livestreamer_cli/argparser.py index <HASH>..<HASH> 100644 --- a/src/livestreamer_cli/argparser.py +++ b/src/livestreamer_cli/argparser.py @@ -353,11 +353,6 @@ player.add_argument( is capable of reconnecting to a HTTP stream. This is usually done by setting ...
docs: Remove no longer needed note.
py
diff --git a/edtf_validate/valid_edtf.py b/edtf_validate/valid_edtf.py index <HASH>..<HASH> 100644 --- a/edtf_validate/valid_edtf.py +++ b/edtf_validate/valid_edtf.py @@ -137,7 +137,7 @@ yearWithU = ( ) monthWithU = "u" + digitOrU | "0u" | "1u" oneThru3 = oneOf("1 2 3") -dayWithU = "u" + digitOrU | oneThru3 + "u" +d...
Day with you could start with 0
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -39,7 +39,6 @@ setup( 'urbansim = urbansim.cli:main' ], 'urbansim.commands': [ - 'compile = urbansim.urbansim.compilecli:Compile', 'serve = urbansim.server.servecli:Se...
removing compile command from the setup
py
diff --git a/tests/beacon/test_helpers.py b/tests/beacon/test_helpers.py index <HASH>..<HASH> 100644 --- a/tests/beacon/test_helpers.py +++ b/tests/beacon/test_helpers.py @@ -62,10 +62,6 @@ from tests.beacon.helpers import ( ) -class UnreachableCodePathError(Exception): - pass - - @pytest.fixture() def sample...
Remove specialized exception in favor of built-in type
py
diff --git a/pdfwatermarker/utils/path.py b/pdfwatermarker/utils/path.py index <HASH>..<HASH> 100644 --- a/pdfwatermarker/utils/path.py +++ b/pdfwatermarker/utils/path.py @@ -24,7 +24,20 @@ def set_destination(source, suffix): # Concatenate new filename dst_path = src_file_name + '_' + suffix + src_file_ext...
Added if statement and number incrementer to check if filename is unique.
py
diff --git a/meshio/vtk_io.py b/meshio/vtk_io.py index <HASH>..<HASH> 100644 --- a/meshio/vtk_io.py +++ b/meshio/vtk_io.py @@ -526,7 +526,7 @@ def _write_cells(f, cells, write_binary): if write_binary: for key in cells: if key[:7] == "polygon": - d = numpy.full(len(cells[key]),...
use same coding style as in tests
py
diff --git a/sos/plugins/openswan.py b/sos/plugins/openswan.py index <HASH>..<HASH> 100644 --- a/sos/plugins/openswan.py +++ b/sos/plugins/openswan.py @@ -36,6 +36,11 @@ class Openswan(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): if self.get_option("ipsec-barf"): self.add_cmd_output("ipsec b...
[openswan] Forbid collection of secrets and certdb When collecting IPSec data, currently nothing prevents the collection of keys or the cert.db files. Ensure we don't collect this information as it is private.
py
diff --git a/bcbio/structural/seq2c.py b/bcbio/structural/seq2c.py index <HASH>..<HASH> 100644 --- a/bcbio/structural/seq2c.py +++ b/bcbio/structural/seq2c.py @@ -277,7 +277,8 @@ def _combine_coverages(items, work_dir): with open(tx_out_file, 'w') as out_f: for data in items: ...
seq2c: improve combined sanity check to handle shared normals These will have multiple identical coverage files due to the batching.
py
diff --git a/ignite/engine/engine.py b/ignite/engine/engine.py index <HASH>..<HASH> 100644 --- a/ignite/engine/engine.py +++ b/ignite/engine/engine.py @@ -611,9 +611,9 @@ class Engine(Serializable): Engine has a state and the following logic is applied in this function: - At the first call, new stat...
[docs] fix engine.run docstring (#<I>) * [docs] engine.run docstring * Update setup.cfg
py
diff --git a/openquake/hazardlib/calc/filters.py b/openquake/hazardlib/calc/filters.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/calc/filters.py +++ b/openquake/hazardlib/calc/filters.py @@ -358,6 +358,8 @@ class RtreeFilter(SourceFilter): Integration distance dictionary (TRT -> distance in km) ...
Cleanup [skip CI]
py
diff --git a/troposphere/apigateway.py b/troposphere/apigateway.py index <HASH>..<HASH> 100644 --- a/troposphere/apigateway.py +++ b/troposphere/apigateway.py @@ -210,7 +210,7 @@ class RestApi(AWSObject): resource_type = "AWS::ApiGateway::RestApi" props = { - "Body": (basestring, False), + "Bo...
Change param type for resource: RestAPI (#<I>) "Body" is a dict now: <URL>
py
diff --git a/niworkflows/__about__.py b/niworkflows/__about__.py index <HASH>..<HASH> 100644 --- a/niworkflows/__about__.py +++ b/niworkflows/__about__.py @@ -10,7 +10,7 @@ as well as for open-source software distribution. from __future__ import absolute_import, division, print_function import datetime -__version__...
[skip ci] Update version after relase
py
diff --git a/tacl/constants.py b/tacl/constants.py index <HASH>..<HASH> 100644 --- a/tacl/constants.py +++ b/tacl/constants.py @@ -197,6 +197,9 @@ REPORT_EPILOG = '''\ on a set of results more than once will make the results inaccurate! + --extend applies before --reduce because it may generate results +...
Added note about why --extend is run before --reduce when both options are specified.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,15 @@ import os from setuptools import setup, find_packages +import polls + def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-polls', - vers...
use version from polls module for setup
py
diff --git a/python/examples/logistic_regression.py b/python/examples/logistic_regression.py index <HASH>..<HASH> 100755 --- a/python/examples/logistic_regression.py +++ b/python/examples/logistic_regression.py @@ -39,7 +39,7 @@ def readPointBatch(iterator): strs = list(iterator) matrix = np.zeros((len(strs),...
Fix string parsing and style in LR
py
diff --git a/openquake/calculators/tests/event_based_risk_test.py b/openquake/calculators/tests/event_based_risk_test.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/tests/event_based_risk_test.py +++ b/openquake/calculators/tests/event_based_risk_test.py @@ -163,7 +163,8 @@ class EventBasedRiskTestCase(Calc...
Added a delta [skip hazardlib]
py
diff --git a/openquake/engine/db/models.py b/openquake/engine/db/models.py index <HASH>..<HASH> 100644 --- a/openquake/engine/db/models.py +++ b/openquake/engine/db/models.py @@ -2130,7 +2130,7 @@ class Gmf(djm.Model): 'where parent_id=%s', (self.id,)) return [self.__class__.objects.get(p...
The GMFs must be ordered by default (the ordering is fast anyway)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,8 @@ with open(join(dirname(__file__), 'bddrest', '__init__.py')) as v_file: dependencies = [ 'pyyaml', - 'argcomplete' + 'argcomplete', + 'pytest >= 4.0.2', ]
Migrating to pytest >= <I>
py
diff --git a/api/src/opentrons/hardware_control/backends/ot3simulator.py b/api/src/opentrons/hardware_control/backends/ot3simulator.py index <HASH>..<HASH> 100644 --- a/api/src/opentrons/hardware_control/backends/ot3simulator.py +++ b/api/src/opentrons/hardware_control/backends/ot3simulator.py @@ -58,7 +58,6 @@ from op...
fix(api): do not acquire gpio in ot3simulator (#<I>) Because it shouldn't try, since it's a simulator, and it needs to not crash
py
diff --git a/salt/modules/git.py b/salt/modules/git.py index <HASH>..<HASH> 100644 --- a/salt/modules/git.py +++ b/salt/modules/git.py @@ -1375,10 +1375,8 @@ def fetch(cwd, command.extend( [x for x in _format_opts(opts) if x not in ('-f', '--force')] ) - if not isinstance(remote, six.string_types)...
Check if the remote exists before casting to a string. The bug before was if the origin wasn't specified None would be cast to a string-- which would then be interpreted as True-- which would end up trying to run `git fetch None` which doesn't work :)
py