diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/angr/analyses/cfg/cfg_accurate.py b/angr/analyses/cfg/cfg_accurate.py index <HASH>..<HASH> 100644 --- a/angr/analyses/cfg/cfg_accurate.py +++ b/angr/analyses/cfg/cfg_accurate.py @@ -696,6 +696,7 @@ class CFGAccurate(ForwardAnalysis, CFGBase): # pylint: disable=abstract-metho self._thumb_addrs =...
Pickle iropt_level in cfgaccurate; closes #<I>
py
diff --git a/pypsa/plot.py b/pypsa/plot.py index <HASH>..<HASH> 100644 --- a/pypsa/plot.py +++ b/pypsa/plot.py @@ -165,7 +165,10 @@ def plot(network, margin=0.05, ax=None, basemap=True, bus_colors='b', for b_i in bus_sizes.index.levels[0]: s = bus_sizes.loc[b_i] radius = s.sum()**0.5 ...
Update plot.py If radius is 0, ratios are NaN because of division by 0.
py
diff --git a/superset/db_engine_specs.py b/superset/db_engine_specs.py index <HASH>..<HASH> 100644 --- a/superset/db_engine_specs.py +++ b/superset/db_engine_specs.py @@ -193,7 +193,7 @@ class SqliteEngineSpec(BaseEngineSpec): Grain("week", _('week'), "DATE({col}, -strftime('%w', {col}) || ' day...
Fix monthly time grain in sqllite (#<I>)
py
diff --git a/runners/vr/runners/base.py b/runners/vr/runners/base.py index <HASH>..<HASH> 100644 --- a/runners/vr/runners/base.py +++ b/runners/vr/runners/base.py @@ -240,7 +240,7 @@ class BaseRunner(object): content += self.get_lxc_volume_str() filepath = os.path.join(proc_path, 'proc.lxc') - ...
Open text files (templates and config files) as text rather than bytes
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -235,13 +235,18 @@ latex_documents = [ # If false, no module index is generated. #latex_use_modindex = True -on_rtd = os.environ.get('READTHEDOCS', None) == 'True' -if on_rtd: - # so that ReadTheDocs can...
Wrap up mocking functionality into a function
py
diff --git a/tests/test_app.py b/tests/test_app.py index <HASH>..<HASH> 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -65,6 +65,16 @@ def test_app_configure_without_platforms(mocked_settings): app.configure_platforms() +def test_app_configure_with_tasks(mocked_engine): + """App should have e...
Added test for <I>% coverage on app
py
diff --git a/hgtools/managers/reentry.py b/hgtools/managers/reentry.py index <HASH>..<HASH> 100644 --- a/hgtools/managers/reentry.py +++ b/hgtools/managers/reentry.py @@ -1,3 +1,8 @@ +""" +Base classes for invoking a Python script from within +the current Python process. +""" + import sys import io import collection...
Add docstring to reentry.
py
diff --git a/aiohttp/__init__.py b/aiohttp/__init__.py index <HASH>..<HASH> 100644 --- a/aiohttp/__init__.py +++ b/aiohttp/__init__.py @@ -1,4 +1,4 @@ -__version__ = '3.5.0b1' +__version__ = '3.5.0b2' # This relies on each of the submodules having an __all__ variable.
Bump to <I>b2
py
diff --git a/topydo/lib/ListFormat.py b/topydo/lib/ListFormat.py index <HASH>..<HASH> 100644 --- a/topydo/lib/ListFormat.py +++ b/topydo/lib/ListFormat.py @@ -22,6 +22,7 @@ import re from six import u from topydo.lib.Config import config +from topydo.lib.Colorblock import color_block from topydo.lib.Utils import g...
%z is now a color block All sensible one-letter abbreviations are already taken (c for color, p for progress, h for hue, ...)
py
diff --git a/pylint_django/utils.py b/pylint_django/utils.py index <HASH>..<HASH> 100644 --- a/pylint_django/utils.py +++ b/pylint_django/utils.py @@ -23,8 +23,6 @@ def node_is_subclass(cls, subclass_name): for base_cls in cls.bases: try: for inf in base_cls.infered(): - if 'Mo...
Removing some debug effluvia
py
diff --git a/glue/ligolw/utils/ligolw_sqlite.py b/glue/ligolw/utils/ligolw_sqlite.py index <HASH>..<HASH> 100644 --- a/glue/ligolw/utils/ligolw_sqlite.py +++ b/glue/ligolw/utils/ligolw_sqlite.py @@ -290,7 +290,7 @@ def insert_from_urls(urls, contenthandler, **kwargs): # done. build indexes # - dbtables.build_ind...
fix thinko cruft in ligolw_sqlite.py
py
diff --git a/holoviews/plotting/element.py b/holoviews/plotting/element.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/element.py +++ b/holoviews/plotting/element.py @@ -7,7 +7,7 @@ import param from ..core.options import Store from ..core import OrderedDict, NdOverlay, Overlay, HoloMap, CompositeOverlay, El...
Fixed plotting of single valued ItemTables
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ with open('requirements.txt') as reqs: setup( name='pagseguro', - version='0.3.1', + version='0.3.2', description='Pagseguro API v2 wrapper', author='Bruno Rocha', author_email='roch...
HOTFIX: Merged fix config issue and released to PyPI
py
diff --git a/filetype/filetype.py b/filetype/filetype.py index <HASH>..<HASH> 100644 --- a/filetype/filetype.py +++ b/filetype/filetype.py @@ -77,7 +77,7 @@ def get_type(mime=None, ext=None): The matched file type instance. Otherwise None. """ for kind in types: - if kind.extension is ext or k...
fix(#<I>): use equality comparison operator
py
diff --git a/conftest.py b/conftest.py index <HASH>..<HASH> 100644 --- a/conftest.py +++ b/conftest.py @@ -66,15 +66,16 @@ def pytest_collection_modifyitems(config, items): skip_passed = pytest.mark.skip(reason="Test passed in previous runs") for item in items: - if item.nodeid in passed_tests: - ...
Prefer a run-slow skip reason over a already passed one
py
diff --git a/pysat/instruments/omni_hro.py b/pysat/instruments/omni_hro.py index <HASH>..<HASH> 100644 --- a/pysat/instruments/omni_hro.py +++ b/pysat/instruments/omni_hro.py @@ -40,6 +40,7 @@ time_shift_to_magnetic_poles : Shift time from bowshock to intersection with calculate_clock_angle : Calculate the clock angle...
Update omni_hro.py Added warning on use of function
py
diff --git a/tests/test_caltrack_hourly.py b/tests/test_caltrack_hourly.py index <HASH>..<HASH> 100644 --- a/tests/test_caltrack_hourly.py +++ b/tests/test_caltrack_hourly.py @@ -367,7 +367,7 @@ def test_segment_timeseries_three_months_wtd_insufficient(merged_data): assert ('Data for this model does not meet the m...
updated test to accomodate integers for python <I>
py
diff --git a/easymode/easypublisher/admin.py b/easymode/easypublisher/admin.py index <HASH>..<HASH> 100644 --- a/easymode/easypublisher/admin.py +++ b/easymode/easypublisher/admin.py @@ -336,7 +336,14 @@ class EasyPublisher(VersionAdmin): initial.append(initial_data) for (key, ...
fixed reversion bug, should push to reversion head as well
py
diff --git a/ens/main.py b/ens/main.py index <HASH>..<HASH> 100644 --- a/ens/main.py +++ b/ens/main.py @@ -44,6 +44,10 @@ class ENS: self._resolverContract = self.web3.eth.contract(abi=abis.RESOLVER) self.registrar = Registrar(self) + @classmethod + def fromWeb3(cls, web3): + return cls...
ens: get ENS object from a connected web3
py
diff --git a/libsubmit/channels/local/local.py b/libsubmit/channels/local/local.py index <HASH>..<HASH> 100644 --- a/libsubmit/channels/local/local.py +++ b/libsubmit/channels/local/local.py @@ -26,11 +26,15 @@ class LocalChannel (Channel): - envs (dict) : A dictionary of env variables to be set when launc...
Making a deepcopy of os envs and updating that to fix a weird issue on Theta
py
diff --git a/lib/session.py b/lib/session.py index <HASH>..<HASH> 100644 --- a/lib/session.py +++ b/lib/session.py @@ -427,7 +427,6 @@ class SessionManager: request.response.set_cookie(self._getSessionCookieName(), session_id, domain = self._getSessionCookieDomain(), ...
Removed secure attribute from cookie generation.
py
diff --git a/programs/pmag_gui.py b/programs/pmag_gui.py index <HASH>..<HASH> 100755 --- a/programs/pmag_gui.py +++ b/programs/pmag_gui.py @@ -99,6 +99,14 @@ class MagMainFrame(wx.Frame): # and working directory wx.CallAfter(self.get_dm_and_wd, DM, WD) + # if specified directory doesn't exist...
if Pmag GUI tries to open in a directory that doesn’t exist, try to make it
py
diff --git a/kurt/__init__.py b/kurt/__init__.py index <HASH>..<HASH> 100644 --- a/kurt/__init__.py +++ b/kurt/__init__.py @@ -202,8 +202,8 @@ class Project(object): self._normalize() def __repr__(self): - return "<%s.%s name=%r>" % (self.__class__.__module__, - self.__class__.__na...
Remove Project name from repr (again...)
py
diff --git a/tests/pod_groups_test.py b/tests/pod_groups_test.py index <HASH>..<HASH> 100644 --- a/tests/pod_groups_test.py +++ b/tests/pod_groups_test.py @@ -132,7 +132,7 @@ class Pod_Group_tests(unittest.TestCase): status=200, content_type='text/json') ...
helps if i call the right method for the unit test
py
diff --git a/salt/cloud/clouds/nova.py b/salt/cloud/clouds/nova.py index <HASH>..<HASH> 100644 --- a/salt/cloud/clouds/nova.py +++ b/salt/cloud/clouds/nova.py @@ -949,7 +949,11 @@ def list_nodes(call=None, **kwargs): if not server_list: return {} for server in server_list: - server_tmp = conn....
dont exit on a missing server This errors if a server gets deleted between when the server_list and show_server commands are run. When running map files to build servers, this could cause the entire map to be evaluated as needing to be run. If a server disappears, just continue and don't include it.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -98,7 +98,7 @@ additions for Django projects. See the project page for more information: cmdclass=cmdclasses, package_data=package_data, install_requires=['six>=1.2'], - tests_require=['Django'], + tests_r...
shortuuid is also required to run tests
py
diff --git a/torchvision/models/detection/roi_heads.py b/torchvision/models/detection/roi_heads.py index <HASH>..<HASH> 100644 --- a/torchvision/models/detection/roi_heads.py +++ b/torchvision/models/detection/roi_heads.py @@ -182,7 +182,7 @@ def _onnx_heatmaps_to_keypoints(maps, maps_i, roi_map_width, roi_map_height, ...
Updates integer division to use floor division operator (#<I>) Another instance of integer division using the division operator. In this case line <I> already shows the correct formulation, so line <I> only needs the update.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -45,5 +45,6 @@ setup( "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", ...
added py<I> to setup.py
py
diff --git a/OpenSSL/SSL.py b/OpenSSL/SSL.py index <HASH>..<HASH> 100644 --- a/OpenSSL/SSL.py +++ b/OpenSSL/SSL.py @@ -1146,7 +1146,10 @@ class Connection(object): Look up attributes on the wrapped socket object if they are not found on the Connection object. """ - return getattr(self....
getattr now works when no socket is wrapped
py
diff --git a/compiler/quilt/nodes.py b/compiler/quilt/nodes.py index <HASH>..<HASH> 100644 --- a/compiler/quilt/nodes.py +++ b/compiler/quilt/nodes.py @@ -54,8 +54,10 @@ class DataNode(Node): """ if asa is not None: if self._package is None or not self._node.hashes: - msg =...
Fix a no-effect string, bad super call (#<I>)
py
diff --git a/ELiDE/ELiDE/tests/util.py b/ELiDE/ELiDE/tests/util.py index <HASH>..<HASH> 100644 --- a/ELiDE/ELiDE/tests/util.py +++ b/ELiDE/ELiDE/tests/util.py @@ -8,6 +8,7 @@ from kivy.base import EventLoop from kivy.tests.common import GraphicUnitTest from kivy.config import ConfigParser +from LiSE.proxy import Re...
Let tests close the app if they need
py
diff --git a/django_fabric/mixins.py b/django_fabric/mixins.py index <HASH>..<HASH> 100644 --- a/django_fabric/mixins.py +++ b/django_fabric/mixins.py @@ -25,3 +25,13 @@ class VirtualenvMixin(object): print(colors.yellow('Creating virtualenv')) with cd(path): self....
add GitNameLockMixin A mixin that reads the gitconfig and uses the gitconfig user.name as the content of the lock file
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -16,6 +16,7 @@ setup( 'tornado>=4.0,<5.0', 'toro>=0.8,<0.9', 'threadloop', + 'futures', ], entry_points={ 'console_scripts': [
add futures as dep ;(
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -78,7 +78,6 @@ GPLv3. packages=['datapoint', 'datapoint.regions'], classifiers=[ 'Development Status :: 3 - Alpha', - 'Programming Language :: Python :: 3.4', 'Programming Language ...
Remove claim of python <I> support in setup.py
py
diff --git a/bin/alert-ganglia.py b/bin/alert-ganglia.py index <HASH>..<HASH> 100755 --- a/bin/alert-ganglia.py +++ b/bin/alert-ganglia.py @@ -166,9 +166,9 @@ def main(): else: env[resource] = rule['environment'] if 'service' not in rule: - ...
Append cluster name to service in alert ganglia
py
diff --git a/contract_payment_mode/models/contract.py b/contract_payment_mode/models/contract.py index <HASH>..<HASH> 100644 --- a/contract_payment_mode/models/contract.py +++ b/contract_payment_mode/models/contract.py @@ -26,7 +26,8 @@ class AccountAnalyticAccount(models.Model): _prepare_invoice_data(cont...
contract_payment_mode: get bank account from partner (#<I>) in recurring invoice
py
diff --git a/gubernator/github/classifier.py b/gubernator/github/classifier.py index <HASH>..<HASH> 100644 --- a/gubernator/github/classifier.py +++ b/gubernator/github/classifier.py @@ -320,12 +320,13 @@ def distill_events(events, distilled_events=None): relevant to determining user state. """ bots = [ ...
PR dashboard should ignore google-oss-robot comments
py
diff --git a/waldo/contrib/config.py b/waldo/contrib/config.py index <HASH>..<HASH> 100644 --- a/waldo/contrib/config.py +++ b/waldo/contrib/config.py @@ -459,10 +459,7 @@ class Config(object): """ if '--' in argv: dashdash = argv.index("--") - if dashdash == 0: - ...
config: handle '--' being first argument The change in <I>e<I>d introduced special handling for '--' being the first argument. In that case, return argv[1:], [] was returned. I believe the correct return value would be return [], argv[1:] since the non-options are the second return value. When the return value...
py
diff --git a/werkzeug/utils.py b/werkzeug/utils.py index <HASH>..<HASH> 100644 --- a/werkzeug/utils.py +++ b/werkzeug/utils.py @@ -29,7 +29,7 @@ except NameError: _empty_stream = StringIO('') _accept_re = re.compile(r'([^\s;,]+)(?:[^,]*?;\s*q=(\d*(?:\.\d+)?))?') -_format_re = re.compile(r'\$(%s|\{%s\})' % (('[a-zA-...
fixed rule factory --HG-- branch : trunk
py
diff --git a/gpiozero/pins/native.py b/gpiozero/pins/native.py index <HASH>..<HASH> 100644 --- a/gpiozero/pins/native.py +++ b/gpiozero/pins/native.py @@ -137,9 +137,9 @@ class GPIOFS(object): except KeyError: result = None # Dirty hack to wait for udev to set permissions ...
Wait for the edge file to be accessible
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,11 +11,13 @@ except ImportError: kw = { 'name': "path.py", - 'version': "2.2.2.990", + 'version': "2.3", 'description': "A module wrapper for os.path", 'author': "Mikhail Gusarov", 'author_emai...
Bumped to version <I> Removed download_url (use PyPI for downloads). Added myself as a maintainer. Updated URL to point to jaraco github fork.
py
diff --git a/SoftLayer/CLI/virt/list.py b/SoftLayer/CLI/virt/list.py index <HASH>..<HASH> 100644 --- a/SoftLayer/CLI/virt/list.py +++ b/SoftLayer/CLI/virt/list.py @@ -36,9 +36,12 @@ COLUMNS = [ DEFAULT_COLUMNS = [ 'id', 'hostname', + 'domain', + 'deviceStatus.name', + 'datacenter', 'primary_ip'...
added domain, status and create date columns
py
diff --git a/tests/test_connect.py b/tests/test_connect.py index <HASH>..<HASH> 100644 --- a/tests/test_connect.py +++ b/tests/test_connect.py @@ -17,6 +17,4 @@ def test_connect_api_v2(): def test_connect_api_v3(): puppetdb = connect(api_version=3) - print puppetdb - print puppetdb.version assert pup...
fix test_connect_api_v3
py
diff --git a/awslimitchecker/tests/test_versioncheck.py b/awslimitchecker/tests/test_versioncheck.py index <HASH>..<HASH> 100644 --- a/awslimitchecker/tests/test_versioncheck.py +++ b/awslimitchecker/tests/test_versioncheck.py @@ -357,7 +357,8 @@ class Test_AGPLVersionChecker_Acceptance(object): 'status', ...
fix for detatched head being detected as dirty
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 @@ -220,6 +220,19 @@ class VcsRepoMgrTestCase(TestCase): assert output.strip() == '125' # An uneven number of arguments should report an error. return...
Increase test coverage of get_author()
py
diff --git a/tests/examples/user_code/worker.py b/tests/examples/user_code/worker.py index <HASH>..<HASH> 100644 --- a/tests/examples/user_code/worker.py +++ b/tests/examples/user_code/worker.py @@ -3,7 +3,7 @@ from celery import Celery app = Celery('tasks', broker='amqp://localhost', backend='redis://localhost') app...
fix example worker to support canvas workflow tasks
py
diff --git a/pandas/tests/test_frame.py b/pandas/tests/test_frame.py index <HASH>..<HASH> 100644 --- a/pandas/tests/test_frame.py +++ b/pandas/tests/test_frame.py @@ -6043,8 +6043,6 @@ class TestDataFrame(tm.TestCase, CheckIndexing, io = StringIO() df = DataFrame(np.random.randn(5, 101)) df.i...
TST: fix broken test test_info_wide
py
diff --git a/codecov/__init__.py b/codecov/__init__.py index <HASH>..<HASH> 100644 --- a/codecov/__init__.py +++ b/codecov/__init__.py @@ -304,7 +304,7 @@ def main(*argv, **kwargs): _add_env_if_not_empty(include_env, 'TRAVIS_OS_NAME') if language: - _add_env_if_not_empty(inclu...
Auto-include TRAVIS_*_VERSION It's looking at the right variable to see if it _should_ include it, but then actually including the wrong one.
py
diff --git a/cartoframes/layer.py b/cartoframes/layer.py index <HASH>..<HASH> 100644 --- a/cartoframes/layer.py +++ b/cartoframes/layer.py @@ -188,11 +188,6 @@ class QueryLayer(AbstractLayer): styling module of cartoframes that exposes `CartoColors <https://github.com/CartoDB/CartoColor/wi...
removing bin_method and bins keywords from color argument
py
diff --git a/tests/test_instances.py b/tests/test_instances.py index <HASH>..<HASH> 100644 --- a/tests/test_instances.py +++ b/tests/test_instances.py @@ -238,7 +238,6 @@ def test_resolution(tmpdir, PipCommand): finder_args.update( { "candidate_prefs": candidate_prefs, - ...
Stop passing link_collector before pip==<I>
py
diff --git a/fluent_contents/tests/test_models.py b/fluent_contents/tests/test_models.py index <HASH>..<HASH> 100644 --- a/fluent_contents/tests/test_models.py +++ b/fluent_contents/tests/test_models.py @@ -1,3 +1,4 @@ +import django from django.contrib.contenttypes.models import ContentType from fluent_contents.mo...
Improve tests for older Django versions
py
diff --git a/pysysinfo/redisdb.py b/pysysinfo/redisdb.py index <HASH>..<HASH> 100644 --- a/pysysinfo/redisdb.py +++ b/pysysinfo/redisdb.py @@ -62,4 +62,8 @@ class RedisInfo: @return: Dictionary of stats. """ - return self._conn.info() + try: + return self._conn.info(...
Fix to return more detailed stats for recent Redis versions.
py
diff --git a/setuptools/tests/test_virtualenv.py b/setuptools/tests/test_virtualenv.py index <HASH>..<HASH> 100644 --- a/setuptools/tests/test_virtualenv.py +++ b/setuptools/tests/test_virtualenv.py @@ -8,6 +8,8 @@ from pytest_fixture_config import yield_requires_config import pytest_virtualenv +from setuptools.ex...
tests: fix `test_pip_upgrade_from_source` on Python <I> Do not test pip's master on <I>, as support for it has been dropped.
py
diff --git a/slave/ls340.py b/slave/ls340.py index <HASH>..<HASH> 100644 --- a/slave/ls340.py +++ b/slave/ls340.py @@ -559,6 +559,10 @@ class LS340(IEC60488): """Clears the alarm status for all inputs.""" self.connection.write('ALMRST') + def reset_minmax(self): + """Resets Min/Max functio...
Implemented min/max reset command, closes #<I>.
py
diff --git a/qgiscommons/settings.py b/qgiscommons/settings.py index <HASH>..<HASH> 100644 --- a/qgiscommons/settings.py +++ b/qgiscommons/settings.py @@ -58,11 +58,10 @@ def pluginSetting(name, namespace=None, typ=None): """Return setting python type""" if t == BOOL: return bool - ...
using unicode type for settings as default, instead of None type
py
diff --git a/rope/base/oi/soa.py b/rope/base/oi/soa.py index <HASH>..<HASH> 100644 --- a/rope/base/oi/soa.py +++ b/rope/base/oi/soa.py @@ -24,10 +24,12 @@ def _analyze_node(pycore, pydefined, should_analyze, search_subscopes, followed_calls) if should_analyze(pydefined): new_fol...
soa: when following calls do not analyze sub-scopes
py
diff --git a/alot/widgets.py b/alot/widgets.py index <HASH>..<HASH> 100644 --- a/alot/widgets.py +++ b/alot/widgets.py @@ -481,7 +481,11 @@ class MessageWidget(urwid.WidgetWrap): return ('fixed', length, spacer) def _get_arrowhead_aligner(self): - return ('fixed', 1, urwid.SolidFill(' ')) + ...
Draw connected tree lines for unfolded messages Tree lines for children of folded messages start at their parent's arrow head. Before the alignment of the unfolded parts, lines of childen of unfolded messages originated 'in' the text of their parent. After the alignment, they started underneath a blank spacer column, ...
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 @@ -634,8 +634,8 @@ def _java2py(gateway, r, encoding="bytes"): except Py4JJavaError: pass # not pickable - if is...
fix callBigDLFunc return a Int while the true return value from java is a byte array. (#<I>)
py
diff --git a/gwpy/plotter/__init__.py b/gwpy/plotter/__init__.py index <HASH>..<HASH> 100644 --- a/gwpy/plotter/__init__.py +++ b/gwpy/plotter/__init__.py @@ -55,7 +55,7 @@ GWPY_PLOT_PARAMS = { 'pink', (0.13671875, 0.171875, 0.0859375), # dark green (1.0, 0.4, 0.0), # orange - 'brown...
plotter: change brown in color cycle
py
diff --git a/certbot/tests/test_fake_marathon.py b/certbot/tests/test_fake_marathon.py index <HASH>..<HASH> 100644 --- a/certbot/tests/test_fake_marathon.py +++ b/certbot/tests/test_fake_marathon.py @@ -2,20 +2,20 @@ import json import treq +from testtools.matchers import Equals + from twisted.internet.defer impo...
Fake Marathon tests: reorder imports
py
diff --git a/rapport/plugins/github.py b/rapport/plugins/github.py index <HASH>..<HASH> 100644 --- a/rapport/plugins/github.py +++ b/rapport/plugins/github.py @@ -18,8 +18,9 @@ Github plugin. """ -import json import collections +import json +import re import requests @@ -37,6 +38,9 @@ class GithubPlugin(rappo...
Be more tolerant with Github's 'link' URLs to next pages
py
diff --git a/limpyd/model.py b/limpyd/model.py index <HASH>..<HASH> 100644 --- a/limpyd/model.py +++ b/limpyd/model.py @@ -47,6 +47,7 @@ class RedisModel(RedisProxyCommand): __metaclass__ = MetaRedisModel cacheable = True + DoesNotExist = DoesNotExist def __init__(self, *args, **kwargs): ...
Make DoesNotExist exception available as RedisModel property
py
diff --git a/azure-cognitiveservices-search/azure/cognitiveservices/search/__init__.py b/azure-cognitiveservices-search/azure/cognitiveservices/search/__init__.py index <HASH>..<HASH> 100644 --- a/azure-cognitiveservices-search/azure/cognitiveservices/search/__init__.py +++ b/azure-cognitiveservices-search/azure/cognit...
Do not declare azure.cognitiveservices.search as NSpkg
py
diff --git a/fabfile.py b/fabfile.py index <HASH>..<HASH> 100644 --- a/fabfile.py +++ b/fabfile.py @@ -32,7 +32,7 @@ def create_rst_doc(): def clean(): create_rst_doc() local("python setup.py clean") - local("rm coursera_dl.egg-info htmlcov build -rf") + local("rm -rf coursera.egg-info htmlcov build di...
fabfile: Improve the cleaning target of fabfile. Some files were missed and, aesthetically, I also prefer the switches to `rm` to be specified before the list of files.
py
diff --git a/sendclient/common.py b/sendclient/common.py index <HASH>..<HASH> 100644 --- a/sendclient/common.py +++ b/sendclient/common.py @@ -13,7 +13,7 @@ def checkServerVersion(service, ignoreVersion=False): r = requests.get(service + '__version__') r.raise_for_status() b = r.json() - if b['version...
compatible with acbf9fc
py
diff --git a/ndio/ramon/__init__.py b/ndio/ramon/__init__.py index <HASH>..<HASH> 100644 --- a/ndio/ramon/__init__.py +++ b/ndio/ramon/__init__.py @@ -1,5 +1,6 @@ from __future__ import absolute_import import tempfile +import json import copy from ndio.ramon.RAMONBase import * @@ -114,7 +115,7 @@ def to_json(ramo...
finish ramon#to_json
py
diff --git a/gwpy/tests/test_array.py b/gwpy/tests/test_array.py index <HASH>..<HASH> 100644 --- a/gwpy/tests/test_array.py +++ b/gwpy/tests/test_array.py @@ -387,10 +387,11 @@ class Array2DTestCase(CommonTests, unittest.TestCase): a = self.create() self.assertEqual(a[0, 0], a[0][0]) nptest.a...
tests: modified Array2D tests for _{row,column}class
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ setup(name='pupa', pupa = pupa.cli.__main__:main''', install_requires=[ 'Django>=1.9.0', - 'opencivicdata>=1.0,<2.0', + 'opencivicdata', 'dj_database_url==0.3.0', ...
relax py-ocd constraint during dev
py
diff --git a/src/plone/app/mosaic/setuphandlers.py b/src/plone/app/mosaic/setuphandlers.py index <HASH>..<HASH> 100644 --- a/src/plone/app/mosaic/setuphandlers.py +++ b/src/plone/app/mosaic/setuphandlers.py @@ -159,7 +159,7 @@ description = Default event layout file = event.html """)) custom.writeFile( - ...
Fix custom layout filename in setuphandlers
py
diff --git a/netjsonconfig/backends/openwrt/renderers.py b/netjsonconfig/backends/openwrt/renderers.py index <HASH>..<HASH> 100644 --- a/netjsonconfig/backends/openwrt/renderers.py +++ b/netjsonconfig/backends/openwrt/renderers.py @@ -1,4 +1,5 @@ import json +from copy import deepcopy from ipaddress import ip_interfa...
Use copy.deepcopy to copy interfaces in NetworkRenderer
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -39,6 +39,6 @@ setup( packages=find_packages(exclude=['ez_setup']), platforms=['any'], zip_safe=False, - install_requires=['numpy', 'cython', 'bitarray'], + install_requires=['numpy', 'cython', 'bitarray',...
add smhasher in setup req
py
diff --git a/pyqode/cobol/api/pic.py b/pyqode/cobol/api/pic.py index <HASH>..<HASH> 100644 --- a/pyqode/cobol/api/pic.py +++ b/pyqode/cobol/api/pic.py @@ -69,7 +69,7 @@ def get_field_infos(code): # compute offset of next PIC field. if row['pic']: offset += row['pic_info']['length'] - ...
Fix wrong offset calculation with offset <I> and <I> Fix OpenCobolIDE/OpenCobolIDE#<I>
py
diff --git a/test/test_database.py b/test/test_database.py index <HASH>..<HASH> 100644 --- a/test/test_database.py +++ b/test/test_database.py @@ -212,7 +212,7 @@ class TestDatabase(unittest.TestCase): db = self.client.pymongo_test db.set_profiling_level(ALL) - db.test.find() + db.test...
Fix profiler test for mongo <I>.x nightly
py
diff --git a/omxplayer/player.py b/omxplayer/player.py index <HASH>..<HASH> 100644 --- a/omxplayer/player.py +++ b/omxplayer/player.py @@ -81,10 +81,6 @@ class OMXPlayer(object): self._process = self._setup_omxplayer_process(source) self._connection = self._setup_dbus_connection(self._Connection, self...
Update player.py with comments in PR
py
diff --git a/gns3server/modules/qemu/qemu_vm.py b/gns3server/modules/qemu/qemu_vm.py index <HASH>..<HASH> 100644 --- a/gns3server/modules/qemu/qemu_vm.py +++ b/gns3server/modules/qemu/qemu_vm.py @@ -27,6 +27,7 @@ import subprocess import shlex import ntpath import telnetlib +import time from gns3server.config imp...
Add sleep after write to QEMU monitor (to work with new QEMU versions)
py
diff --git a/oedialect/dialect.py b/oedialect/dialect.py index <HASH>..<HASH> 100644 --- a/oedialect/dialect.py +++ b/oedialect/dialect.py @@ -90,8 +90,12 @@ class OEDialect(postgresql.psycopg2.PGDialect_psycopg2): query['schema'] = oecomp.DEFAULT_SCHEMA query['command'] = 'advanced/has_table' -...
Make sure cursors are closed on after usage
py
diff --git a/generic_utils/app_utils.py b/generic_utils/app_utils.py index <HASH>..<HASH> 100644 --- a/generic_utils/app_utils.py +++ b/generic_utils/app_utils.py @@ -10,14 +10,14 @@ class PluggableSite(object): For usage case please check photo_albums app. ''' def __init__(self, instance_name, query...
change default template_object_name for PluggableSite to 'object'
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -45,6 +45,8 @@ setup( 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2', + 'Programming Language :: Python :...
adding supported python releases
py
diff --git a/satpy/tests/test_config.py b/satpy/tests/test_config.py index <HASH>..<HASH> 100644 --- a/satpy/tests/test_config.py +++ b/satpy/tests/test_config.py @@ -102,9 +102,12 @@ class TestPluginsConfigs(unittest.TestCase): ep.dist.module_path = os.path.join(os.path.sep + 'bla', 'bla') iter_entry...
Fix config test when user environment variables are set
py
diff --git a/tornado_elasticsearch.py b/tornado_elasticsearch.py index <HASH>..<HASH> 100644 --- a/tornado_elasticsearch.py +++ b/tornado_elasticsearch.py @@ -226,7 +226,7 @@ class AsyncTransport(Transport): self.connection_pool.mark_live(connection) response = self.deserializer.loads(...
fix handling of empty body in response (such as for HEAD requests)
py
diff --git a/bcbio/variation/validate.py b/bcbio/variation/validate.py index <HASH>..<HASH> 100644 --- a/bcbio/variation/validate.py +++ b/bcbio/variation/validate.py @@ -20,7 +20,6 @@ import yaml from bcbio import broad, utils from bcbio.cwl import cwlutils from bcbio.distributed.transaction import file_transaction...
Fix circular import during FreeBayes runs
py
diff --git a/metal/logging/writer.py b/metal/logging/writer.py index <HASH>..<HASH> 100644 --- a/metal/logging/writer.py +++ b/metal/logging/writer.py @@ -26,7 +26,13 @@ class LogWriter(object): """ def __init__( - self, log_dir=None, run_dir=None, run_name=None, writer_metrics=[], verbose=True + ...
Add **kwargs to the __init__ of the LogWriter for fixing an error when initializing JSON and Tensorboard log writers
py
diff --git a/plenum/test/replica/test_replica_received_preprepare_with_unknown_request.py b/plenum/test/replica/test_replica_received_preprepare_with_unknown_request.py index <HASH>..<HASH> 100644 --- a/plenum/test/replica/test_replica_received_preprepare_with_unknown_request.py +++ b/plenum/test/replica/test_replica_r...
INDY-<I>: update test_replica_received_preprepare_with_ordered_request
py
diff --git a/tests/unit/test_commands.py b/tests/unit/test_commands.py index <HASH>..<HASH> 100644 --- a/tests/unit/test_commands.py +++ b/tests/unit/test_commands.py @@ -562,7 +562,6 @@ class TestCommands(object): Test acronym finder with the word IRC. """ res = commands.acit(c, e, "#test", "testrunner", "irc...
Remove test which no longer matches :/
py
diff --git a/lib/webinterface_handler_wsgi.py b/lib/webinterface_handler_wsgi.py index <HASH>..<HASH> 100644 --- a/lib/webinterface_handler_wsgi.py +++ b/lib/webinterface_handler_wsgi.py @@ -44,7 +44,7 @@ from invenio.webinterface_handler_config import \ HTTP_NOT_FOUND, HTTP_INTERNAL_SERVER_ERROR from invenio.con...
WebStyle: new CFG_WEBSTYLE_REVERSE_PROXY_IPS * In a multinode configuration with an HTTP reverse proxy node sitting in front of worker nodes that may also be available on public Internet, it is possible to forge HTTP headers in order to spoof IP address. By correctly setting the new variable CFG_WEBSTYLE_REVER...
py
diff --git a/tests/eventlisten.py b/tests/eventlisten.py index <HASH>..<HASH> 100644 --- a/tests/eventlisten.py +++ b/tests/eventlisten.py @@ -63,6 +63,20 @@ def parse(): return opts +def check_access_and_print_warning(sock_dir): + ''' + Check if this user is able to access the socket + directory and ...
Warn if eventlisten is unable to access socket
py
diff --git a/salt/modules/pkg_resource.py b/salt/modules/pkg_resource.py index <HASH>..<HASH> 100644 --- a/salt/modules/pkg_resource.py +++ b/salt/modules/pkg_resource.py @@ -96,7 +96,7 @@ def _parse_pkg_meta(path): except AttributeError: continue if arch: - ...
Debian Package Architechture Debian packages are allowed to designate the package as architecture-independent by specifying the value 'all' in the Architecture field of debian/control. Update salt.modules.apt.install (via salt.modules.pkg_resource._parse_pkg_meta) to respect this and not require ':all' appended to a p...
py
diff --git a/tests/test_config.py b/tests/test_config.py index <HASH>..<HASH> 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -35,3 +35,13 @@ class TestConfiguration (unittest.TestCase): def test_encoding_programs (self): self.assertEqual(set(patoolib.ArchiveEncodings), ...
Test soundness of new configuration dictionaries.
py
diff --git a/hotdoc/core/doc_tree.py b/hotdoc/core/doc_tree.py index <HASH>..<HASH> 100644 --- a/hotdoc/core/doc_tree.py +++ b/hotdoc/core/doc_tree.py @@ -397,6 +397,8 @@ class Page(object): self.short_description = symbol.comment.short_description if symbol.comment.title: ...
doc_tree: use fallback for page links
py
diff --git a/infoblox_client/objects.py b/infoblox_client/objects.py index <HASH>..<HASH> 100644 --- a/infoblox_client/objects.py +++ b/infoblox_client/objects.py @@ -655,7 +655,7 @@ class Dhcpmember(SubObjects): _fields = ['_struct', 'ipv4addr', 'ipv6addr', 'name'] -class Dhcpoption(SubObjects): +class DhcpOp...
Renamed Dhcpoption class to DhcpOption to make it backwards compatible * In the previous versions of the client the class was named "DhcpOption". * Returned the old class name to make the library backwards compatible.
py
diff --git a/lib/svtplay_dl/service/solidtango.py b/lib/svtplay_dl/service/solidtango.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/service/solidtango.py +++ b/lib/svtplay_dl/service/solidtango.py @@ -11,7 +11,7 @@ from svtplay_dl.service import Service class Solidtango(Service): supported_domains_re = [r...
Fixed: removed whitespace on solidsport domain
py
diff --git a/dev/writeCode.py b/dev/writeCode.py index <HASH>..<HASH> 100644 --- a/dev/writeCode.py +++ b/dev/writeCode.py @@ -327,12 +327,11 @@ def writeSetCode(attrib, output, element): if attName == 'id': output.write('\treturn SyntaxChecker::checkAndSetSId({0}, m{1});\n'.format(attName, capAttName )...
- another check for NULL reference
py
diff --git a/blockstack/lib/rpc.py b/blockstack/lib/rpc.py index <HASH>..<HASH> 100644 --- a/blockstack/lib/rpc.py +++ b/blockstack/lib/rpc.py @@ -1415,7 +1415,7 @@ class BlockstackAPIEndpointHandler(SimpleHTTPRequestHandler): 'GET': self.GET_name_zonefile, }, }, - ...
REST endpoint's zonefile hash length is 2x the length in bytes
py
diff --git a/yabt/target_utils_test.py b/yabt/target_utils_test.py index <HASH>..<HASH> 100644 --- a/yabt/target_utils_test.py +++ b/yabt/target_utils_test.py @@ -93,7 +93,7 @@ def test_norm_name_unqualified_error(): 'possible ambiguity' in str(excinfo.value)) -_HELLO_PROG_HASH = '41eb61d311e6b841d71f2...
added a new prop to ProtoBuilder so its hash and every target depend on it was changed.
py
diff --git a/samcli/__init__.py b/samcli/__init__.py index <HASH>..<HASH> 100644 --- a/samcli/__init__.py +++ b/samcli/__init__.py @@ -2,4 +2,4 @@ SAM CLI version """ -__version__ = "0.45.0" +__version__ = "0.46.0"
chore: Version bump to <I> (#<I>)
py
diff --git a/salt/modules/yumpkg.py b/salt/modules/yumpkg.py index <HASH>..<HASH> 100644 --- a/salt/modules/yumpkg.py +++ b/salt/modules/yumpkg.py @@ -2539,7 +2539,7 @@ def _parse_repo_file(filename): for section in parsed._sections: section_dict = dict(parsed._sections[section]) - section_dict.p...
Fix KeyError in yumpkg configparser code on Python 3 It looks like the configparser in Python 3 does not insert the `__name__` key in each section. Popping it without a default causes a KeyError on Python 3. This commit fixes that KeyError.
py
diff --git a/wikipedia/wikipedia.py b/wikipedia/wikipedia.py index <HASH>..<HASH> 100644 --- a/wikipedia/wikipedia.py +++ b/wikipedia/wikipedia.py @@ -189,6 +189,28 @@ class WikipediaPage(object): return summary + def images(self): + """ + List of URLs of images on the page. + """ + + if not getattr(self, ...
add image getting function to WikipediaPage
py
diff --git a/libagent/gpg/agent.py b/libagent/gpg/agent.py index <HASH>..<HASH> 100644 --- a/libagent/gpg/agent.py +++ b/libagent/gpg/agent.py @@ -116,10 +116,15 @@ class Handler(object): self.options.append(opt) log.debug('options: %s', self.options) - def handle_get_passphrase(self, conn, args)...
gpg: require symmetric passphrase re-entry
py
diff --git a/papyrus/tests/test_protocol.py b/papyrus/tests/test_protocol.py index <HASH>..<HASH> 100644 --- a/papyrus/tests/test_protocol.py +++ b/papyrus/tests/test_protocol.py @@ -289,11 +289,9 @@ class create_attr_filter_Tests(unittest.TestCase): }) MappedClass = self._get_mapped_class...
Comparing and_ filter with compare() does not work
py
diff --git a/Lib/fontbakery/commands/check_googlefonts.py b/Lib/fontbakery/commands/check_googlefonts.py index <HASH>..<HASH> 100644 --- a/Lib/fontbakery/commands/check_googlefonts.py +++ b/Lib/fontbakery/commands/check_googlefonts.py @@ -4,10 +4,7 @@ from __future__ import absolute_import, print_function, unicode_lite...
[commands][check_googlefonts] Remove runner_factory This partial function is not called by any other module/script
py