diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/aioxmpp/node.py b/aioxmpp/node.py index <HASH>..<HASH> 100644 --- a/aioxmpp/node.py +++ b/aioxmpp/node.py @@ -680,6 +680,10 @@ class PresenceManagedClient(AbstractClient): an `available` presence, the client will attempt to connect to the server. If the presence is `unavailable` and the c...
Clarify use of stop in PresenceManagedClient
py
diff --git a/more_itertools/more.py b/more_itertools/more.py index <HASH>..<HASH> 100644 --- a/more_itertools/more.py +++ b/more_itertools/more.py @@ -874,6 +874,9 @@ def stagger(iterable, offsets=(-1, 0, 1), longest=False, fillvalue=None): >>> list(stagger([0, 1, 2, 3], longest=True)) [(None, 0, 1), ...
Update docstrings for zip_offset and stagger
py
diff --git a/intake/catalog/default.py b/intake/catalog/default.py index <HASH>..<HASH> 100644 --- a/intake/catalog/default.py +++ b/intake/catalog/default.py @@ -68,7 +68,7 @@ def which(program): def global_data_dir(): """Return the global Intake catalog dir for the current environment""" - + prefix = False...
Fix failure to find appdir when there is no prefix
py
diff --git a/rest_framework_swagger/tests.py b/rest_framework_swagger/tests.py index <HASH>..<HASH> 100644 --- a/rest_framework_swagger/tests.py +++ b/rest_framework_swagger/tests.py @@ -1302,6 +1302,7 @@ class BaseMethodIntrospectorTest(TestCase, DocumentationGeneratorMixin): self.assertIn( prope...
Added test coverage to ensure enums included for choices
py
diff --git a/salt/fileserver/__init__.py b/salt/fileserver/__init__.py index <HASH>..<HASH> 100644 --- a/salt/fileserver/__init__.py +++ b/salt/fileserver/__init__.py @@ -59,7 +59,7 @@ def reap_fileserver_cache_dir(cache_base, find_func): for root, dirs, files in os.walk(env_base): # if we have an...
Fix `pep8` `E<I>` issues.
py
diff --git a/astropy_helpers/utils.py b/astropy_helpers/utils.py index <HASH>..<HASH> 100644 --- a/astropy_helpers/utils.py +++ b/astropy_helpers/utils.py @@ -13,6 +13,9 @@ import warnings try: from importlib import machinery as import_machinery + # Python 3.2 does not have SourceLoader + if not hasattr(i...
SourceLoader does not exist in Python <I>
py
diff --git a/goatools/associations.py b/goatools/associations.py index <HASH>..<HASH> 100755 --- a/goatools/associations.py +++ b/goatools/associations.py @@ -135,7 +135,7 @@ def read_ncbi_gene2go(fin_gene2go, taxids=None, **kws): if taxid2asscs is not None: ...
When writing file, print number of GOEA items printed as well as filename
py
diff --git a/openquake/baselib/parallel.py b/openquake/baselib/parallel.py index <HASH>..<HASH> 100644 --- a/openquake/baselib/parallel.py +++ b/openquake/baselib/parallel.py @@ -170,8 +170,10 @@ from openquake.baselib.general import ( split_in_blocks, block_splitter, AccumDict, humansize, CallableDict, gette...
Raised a bit the recursion limit [skip CI]
py
diff --git a/Xlib/keysymdef/xf86.py b/Xlib/keysymdef/xf86.py index <HASH>..<HASH> 100644 --- a/Xlib/keysymdef/xf86.py +++ b/Xlib/keysymdef/xf86.py @@ -159,6 +159,25 @@ XK_XF86_Green = 0x1008FFA4 XK_XF86_Yellow = 0x1008FFA5 XK_XF86_Blue = 0x1008FFA6 +XK_XF86_Suspend = 0x1008FFA7...
Update xf<I>.py with new keysyms Suspend, hibernate, touchpad controls, microphone toggle, WWAN, RFKill, Audio preset, rotation lock toggle and full screen. These "new" keysyms were taken from `/usr/include/X<I>/XF<I>keysym.h`
py
diff --git a/pprofile.py b/pprofile.py index <HASH>..<HASH> 100755 --- a/pprofile.py +++ b/pprofile.py @@ -681,6 +681,7 @@ class StatisticalThread(threading.Thread, ProfileRunnerBase): """ _test = None _start_time = None + clean_exit = False def __init__(self, profiler, period=.001, single=True...
Exit with non-zero status when StatisticalThread raised. Otherwise, regressions in statistical profiling do not show in automated tests.
py
diff --git a/tests/test_game.py b/tests/test_game.py index <HASH>..<HASH> 100644 --- a/tests/test_game.py +++ b/tests/test_game.py @@ -44,7 +44,7 @@ class TestGame(unittest.TestCase): self.assertEqual(game.away_team_errors, 2) self.assertEqual(game.away_team_hits, 6) self.assertEqual(game.awa...
Fix test_game.py This makes it consistent with my recent GameScoreboard.date change.
py
diff --git a/hpfeeds/protocol.py b/hpfeeds/protocol.py index <HASH>..<HASH> 100644 --- a/hpfeeds/protocol.py +++ b/hpfeeds/protocol.py @@ -123,12 +123,22 @@ class Unpacker(object): raise StopIteration('No message.') ml, opcode = struct.unpack('!iB', self.buf[0:5]) - if ml > SIZES.get(opco...
Harden protocol decoder against state synchronisation issues
py
diff --git a/cuttlepool.py b/cuttlepool.py index <HASH>..<HASH> 100644 --- a/cuttlepool.py +++ b/cuttlepool.py @@ -61,7 +61,7 @@ class CuttlePool(object): def __del__(self): try: self._close_connections() - except: + except Exception: pass @property @@ -136,1...
remove bare exceptions (resolve #<I>, resolve #<I>)
py
diff --git a/housekeeper/pipelines/mip/collect.py b/housekeeper/pipelines/mip/collect.py index <HASH>..<HASH> 100644 --- a/housekeeper/pipelines/mip/collect.py +++ b/housekeeper/pipelines/mip/collect.py @@ -60,8 +60,7 @@ def analysis(config_path, analysis_id=None): meta_output = build_meta(new_objs['case'].name,...
store meta info file under outDataDir to avoid linking issues
py
diff --git a/pyof/foundation/basic_types.py b/pyof/foundation/basic_types.py index <HASH>..<HASH> 100644 --- a/pyof/foundation/basic_types.py +++ b/pyof/foundation/basic_types.py @@ -185,6 +185,9 @@ class HWAddress(GenericType): def pack(self, value=None): """Pack the value as a binary representation. +...
Improving pack method of HWAddress to accept zero int as value
py
diff --git a/gwpy/frequencyseries/core.py b/gwpy/frequencyseries/core.py index <HASH>..<HASH> 100644 --- a/gwpy/frequencyseries/core.py +++ b/gwpy/frequencyseries/core.py @@ -162,8 +162,8 @@ class FrequencySeries(Series): This method applies the necessary normalisation such that the condition holds: ...
FrequencySeries.ifft: minor docstring change
py
diff --git a/scenarios/kubernetes_e2e.py b/scenarios/kubernetes_e2e.py index <HASH>..<HASH> 100755 --- a/scenarios/kubernetes_e2e.py +++ b/scenarios/kubernetes_e2e.py @@ -51,8 +51,8 @@ DEFAULT_AWS_ZONES = [ 'ap-southeast-2a', 'ap-southeast-2b', 'ap-southeast-2c', - 'ca-central-1a', - 'ca-central-1b...
AWS: remove ca-central-1 regions No c4.large availability presently.
py
diff --git a/lib/util.py b/lib/util.py index <HASH>..<HASH> 100644 --- a/lib/util.py +++ b/lib/util.py @@ -148,6 +148,7 @@ def download(url, filename): # I don't know why. requests.get works. Do what works. # urllib.urlretrieve(url, filename) response = requests.get(url, stream=True) + response.raise_for_s...
Fail loudly if a download fails.
py
diff --git a/jenkins/bootstrap.py b/jenkins/bootstrap.py index <HASH>..<HASH> 100755 --- a/jenkins/bootstrap.py +++ b/jenkins/bootstrap.py @@ -1057,7 +1057,7 @@ def bootstrap(args): setup_credentials(call, args.service_account, upload) try: maybe_upload_podspec(call, paths.art...
Catch OSError from kubectl too.
py
diff --git a/tests/test_finance.py b/tests/test_finance.py index <HASH>..<HASH> 100644 --- a/tests/test_finance.py +++ b/tests/test_finance.py @@ -20,7 +20,6 @@ import pytz from unittest2 import TestCase from datetime import datetime, timedelta -from collections import defaultdict from nose.tools import timed ...
Removes leased sockets from unit test. The leased sockets were from a previous architecture.
py
diff --git a/src/cr/cube/__init__.py b/src/cr/cube/__init__.py index <HASH>..<HASH> 100644 --- a/src/cr/cube/__init__.py +++ b/src/cr/cube/__init__.py @@ -2,4 +2,4 @@ """Initialization module for crunch-cube package.""" -__version__ = "3.0.10a7" +__version__ = "3.0.10a8"
release: prepare <I>a8 release
py
diff --git a/angr/exploration_techniques/tracer.py b/angr/exploration_techniques/tracer.py index <HASH>..<HASH> 100644 --- a/angr/exploration_techniques/tracer.py +++ b/angr/exploration_techniques/tracer.py @@ -809,7 +809,7 @@ class Tracer(ExplorationTechnique): # first check: are we just executing user-contro...
Return current state as last and crash state when executing user controlled code in tracer exploration
py
diff --git a/tests/forces_and_virial.py b/tests/forces_and_virial.py index <HASH>..<HASH> 100755 --- a/tests/forces_and_virial.py +++ b/tests/forces_and_virial.py @@ -250,7 +250,7 @@ def run_forces_and_virial_test(test=None): for mask in masks: if test is None and mask is not None:...
Bug fix: Need to clear mask for next test without mask.
py
diff --git a/rarfile.py b/rarfile.py index <HASH>..<HASH> 100644 --- a/rarfile.py +++ b/rarfile.py @@ -1287,7 +1287,7 @@ def rar3_s2k(psw, salt): cnt = S_LONG.pack(i*0x4000 + j) h.update(seed + cnt[:3]) if j == 0: - iv += h.digest()[-1] + iv += h.dige...
Make encrypted headers work on Python <I> bytes(..)[x] is not bytes() but int, use [x:y] to get bytes()
py
diff --git a/angr/storage/file.py b/angr/storage/file.py index <HASH>..<HASH> 100644 --- a/angr/storage/file.py +++ b/angr/storage/file.py @@ -184,7 +184,7 @@ class SimFile(SimFileBase, SimSymbolicMemory): """ Return a concretization of the contents of the file, as a flat bytestring. """ - ...
Use min of filesize while concretizing SimFiles
py
diff --git a/source/rafcon/core/states/container_state.py b/source/rafcon/core/states/container_state.py index <HASH>..<HASH> 100644 --- a/source/rafcon/core/states/container_state.py +++ b/source/rafcon/core/states/container_state.py @@ -673,9 +673,20 @@ class ContainerState(State): enclosed_t_id_dict = {} ...
fix(ungroup state): handle correct duplicated state ids in new parent The previous implementation was not robust concerning state id consistency. The new should secure this state id consistency for states, data flows and transitions. Fix issue #<I>.
py
diff --git a/sorl/thumbnail/images.py b/sorl/thumbnail/images.py index <HASH>..<HASH> 100644 --- a/sorl/thumbnail/images.py +++ b/sorl/thumbnail/images.py @@ -228,7 +228,7 @@ class UrlStorage(Storage): def delete_all_thumbnails(): storage = default.storage - path = os.path.join(storage.location, settings.THU...
Fix delete_all_thumbnails command. Paths are always relative to storage location.
py
diff --git a/astor/code_gen.py b/astor/code_gen.py index <HASH>..<HASH> 100644 --- a/astor/code_gen.py +++ b/astor/code_gen.py @@ -144,7 +144,7 @@ class SourceGenerator(ExplicitNodeVisitor): """This visitor is able to transform a well formed syntax tree into Python sourcecode. - For more details have a l...
Fix typo in SourceGenerator docstring (#<I>)
py
diff --git a/organizations/backends/defaults.py b/organizations/backends/defaults.py index <HASH>..<HASH> 100644 --- a/organizations/backends/defaults.py +++ b/organizations/backends/defaults.py @@ -150,9 +150,9 @@ class BaseBackend(object): display_name = sender.get_full_name() else: ...
Update defaults.py This is why editing code through GitHub can be troublesome
py
diff --git a/dwave/system/composites/tiling.py b/dwave/system/composites/tiling.py index <HASH>..<HASH> 100644 --- a/dwave/system/composites/tiling.py +++ b/dwave/system/composites/tiling.py @@ -170,7 +170,7 @@ class TilingComposite(dimod.Sampler, dimod.Composite, dimod.Structured): else: warnings...
DeprecationError call corrected.
py
diff --git a/taskw/warrior.py b/taskw/warrior.py index <HASH>..<HASH> 100644 --- a/taskw/warrior.py +++ b/taskw/warrior.py @@ -371,8 +371,7 @@ class TaskWarriorExperimental(TaskWarriorBase): def _execute(self, *args): """ Execute a given taskwarrior command with arguments - Returns a 2-tuple havi...
There is no reason for me to have written such a complicated sentence.
py
diff --git a/gns3converter/__init__.py b/gns3converter/__init__.py index <HASH>..<HASH> 100644 --- a/gns3converter/__init__.py +++ b/gns3converter/__init__.py @@ -12,6 +12,5 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>....
Define version statically, to ease freezing for Windows
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 @@ -88,3 +88,14 @@ class WindTurbineCluster(object): wind_farm in self.wind_farms) / self.get_instal...
Add function for installed power of turbine cluster
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,6 +9,7 @@ setup( 'a Python package for converting country names ' 'between different classifications schemes.'), long_description=open('README.rst').read(), + license='GNU General Public License v3...
adding license metadata to setup.py (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,6 +6,8 @@ from unittest import TextTestRunner, TestLoader here = os.path.abspath(os.path.dirname(__file__)) +with open(os.path.join(here, 'VERSION.txt')) as f: + VERSION = f.read() with open(os.path.join(here, 'r...
added version from VERSION.txt
py
diff --git a/tenant_schemas/postgresql_backend/base.py b/tenant_schemas/postgresql_backend/base.py index <HASH>..<HASH> 100644 --- a/tenant_schemas/postgresql_backend/base.py +++ b/tenant_schemas/postgresql_backend/base.py @@ -74,7 +74,7 @@ class DatabaseWrapper(original_backend.DatabaseWrapper): self.schema_n...
Hide database errors when setting the search path It's needed to allow ROLLBACK to be executed on the DB. It resolves issue #<I>.
py
diff --git a/cassandra/io/asyncorereactor.py b/cassandra/io/asyncorereactor.py index <HASH>..<HASH> 100644 --- a/cassandra/io/asyncorereactor.py +++ b/cassandra/io/asyncorereactor.py @@ -279,9 +279,6 @@ class AsyncoreLoop(object): if not self._thread: return - # The loop shouldn't be woke...
Close dispatcher last when cleaning asyncore connections
py
diff --git a/pywb/__init__.py b/pywb/__init__.py index <HASH>..<HASH> 100644 --- a/pywb/__init__.py +++ b/pywb/__init__.py @@ -1,4 +1,4 @@ -__version__ = '0.51.0' +__version__ = '0.52.0' DEFAULT_CONFIG = 'pywb/default_config.yaml'
version: bump to <I> for upcoming incompatible changes/cleanup
py
diff --git a/salt/version.py b/salt/version.py index <HASH>..<HASH> 100644 --- a/salt/version.py +++ b/salt/version.py @@ -32,7 +32,16 @@ def __get_version_info_from_git(version, version_info): # Let's not import `salt.utils` for the above check kwargs['close_fds'] = True - process = ...
Don't fail on Windows if git is not installed or not on `PATH`.
py
diff --git a/bot_utils/api.py b/bot_utils/api.py index <HASH>..<HASH> 100644 --- a/bot_utils/api.py +++ b/bot_utils/api.py @@ -20,7 +20,17 @@ class API(tweepy.API): _last_tweet, _last_reply, _last_retweet = None, None, None - def __init__(self, screen_name, **kwargs): + def __init__(self, screen_name, pa...
pass args or kwargs into API
py
diff --git a/src/debianbts.py b/src/debianbts.py index <HASH>..<HASH> 100644 --- a/src/debianbts.py +++ b/src/debianbts.py @@ -194,15 +194,16 @@ def get_status(*nrs): return [_parse_status(elem) for elem in reply[0]] else: return [_parse_status(reply[0])] + L = [] # Process th...
get_status: Flatten input before sending requests aca7ac<I>a<I>dc5a0e<I>e<I>eb3d2d<I>ad<I> introduced a performance regression (as reported in Debian bug #<I>) for typical inputs, since every bug's status would be requested individually. Flattening the input to a single list before performing the batch requests ensur...
py
diff --git a/host/pybar/fei4_run_base.py b/host/pybar/fei4_run_base.py index <HASH>..<HASH> 100644 --- a/host/pybar/fei4_run_base.py +++ b/host/pybar/fei4_run_base.py @@ -172,9 +172,10 @@ class Fei4RunBase(RunBase): self.save_configuration_dict(self.raw_data_file.h5_file, 'run_conf', self.run_conf) ...
BUG: now config fe status flag is kept after recongiguration
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -14,6 +14,7 @@ For more details, please go to the `home page`_ or to the `wiki`_. .. _`home page`: https://github.com/retext-project/retext .. _`wiki`: https://github.com/retext-project/retext/wiki''' +import os import sy...
setup.py: Preserve system environment when calling lrelease Fixes #<I>.
py
diff --git a/angr/simos.py b/angr/simos.py index <HASH>..<HASH> 100644 --- a/angr/simos.py +++ b/angr/simos.py @@ -232,8 +232,9 @@ class SimOS(object): state.memory.mem._preapproved_stack = IRange(stack_end - stack_size, stack_end) if o.INITIALIZE_ZERO_REGISTERS in state.options: - fo...
change the way zero-registers are initialized
py
diff --git a/filer/admin/fileadmin.py b/filer/admin/fileadmin.py index <HASH>..<HASH> 100644 --- a/filer/admin/fileadmin.py +++ b/filer/admin/fileadmin.py @@ -114,7 +114,8 @@ class FileAdmin(PrimitivePermissionAwareModelAdmin): url = r.get("Location", None) # Account for custom Image model - ...
You can set an app_label on your custom image model. Account for this in image admin changelist url.
py
diff --git a/tests/test_django_integration.py b/tests/test_django_integration.py index <HASH>..<HASH> 100644 --- a/tests/test_django_integration.py +++ b/tests/test_django_integration.py @@ -15,6 +15,28 @@ def test_django_works(redis_server): @pytest.mark.skipif("not django") +def test_django_add_or_set_locked(red...
Added test for get_or_set_locked
py
diff --git a/doc/source/conf.py b/doc/source/conf.py index <HASH>..<HASH> 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -68,7 +68,7 @@ html_static_path = ['_static'] intersphinx_mapping = { 'python': ('http://docs.python.org/3', None), - 'numpy':('http://docs.scipy.org/doc/numpy', None), + '...
Fixed typesetting in doc/source/conf.py.
py
diff --git a/juicer/utils/__init__.py b/juicer/utils/__init__.py index <HASH>..<HASH> 100644 --- a/juicer/utils/__init__.py +++ b/juicer/utils/__init__.py @@ -424,7 +424,9 @@ def is_rpm(path): import magic m = magic.open(magic.MAGIC_MIME) m.load() - if 'rpm' in m.file(path): + mime = m.file(path) +...
Allow directories through the gauntlet. Closes #<I>.
py
diff --git a/salt/modules/inspectlib/collector.py b/salt/modules/inspectlib/collector.py index <HASH>..<HASH> 100644 --- a/salt/modules/inspectlib/collector.py +++ b/salt/modules/inspectlib/collector.py @@ -183,7 +183,7 @@ class Inspector(object): continue except Exception as e...
Bugfix: path may not really exist
py
diff --git a/graphos/tests.py b/graphos/tests.py index <HASH>..<HASH> 100755 --- a/graphos/tests.py +++ b/graphos/tests.py @@ -434,6 +434,7 @@ class TestBaseHighcharts(TestCase): self.assertEqual(chart.get_navigation(), {}) + class TestHighchartsLineChart(TestBaseHighcharts): chart_klass = highcharts...
added test case of coloraxis for heatmap
py
diff --git a/pynos/versions/base/interface.py b/pynos/versions/base/interface.py index <HASH>..<HASH> 100644 --- a/pynos/versions/base/interface.py +++ b/pynos/versions/base/interface.py @@ -1210,7 +1210,6 @@ class Interface(object): callback = kwargs.pop('callback', self._callback) int_types = [ - ...
[PYNOS-<I>] Remove 1g support from fabric_isl and fabric_trunk Change-Id: I<I>d<I>bbf<I>d<I>cba9f7aef
py
diff --git a/tests/test_pid.py b/tests/test_pid.py index <HASH>..<HASH> 100644 --- a/tests/test_pid.py +++ b/tests/test_pid.py @@ -108,6 +108,15 @@ def test_pid_force_register_term_signal_handler(): with pid.PidFile(register_term_signal_handler=True): assert signal.getsignal(signal.SIGTERM) is not _custom...
add test for supplying custom signal handler
py
diff --git a/wagtailgeowidget/widgets.py b/wagtailgeowidget/widgets.py index <HASH>..<HASH> 100644 --- a/wagtailgeowidget/widgets.py +++ b/wagtailgeowidget/widgets.py @@ -28,6 +28,7 @@ class GeoField(HiddenInput): self.address_field = kwargs.pop('address_field', self.address_field) self.srid = kwargs....
Make it possible to override zoom in widget
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -43,7 +43,7 @@ LONG_DESCRIPTION = package.__doc__ builtins._ASTROPY_PACKAGE_NAME_ = PACKAGENAME # VERSION should be PEP386 compatible (http://www.python.org/dev/peps/pep-0386) -VERSION = '0.0.dev' +VERSION = '0.1' # Ind...
Preparing release <I>
py
diff --git a/fluidsynth.py b/fluidsynth.py index <HASH>..<HASH> 100644 --- a/fluidsynth.py +++ b/fluidsynth.py @@ -494,7 +494,7 @@ class Synth: return False if vel < 0 or vel > 128: return False - return fluid_synth_noteon(self.synth, chan, key, vel) + return fluid_s...
Fix wrong indent in noteon function
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ if 'READTHEDOCS' in os.environ: install_requires = [ 'python-dateutil<=2.8.99999', 'pycryptodome<=3.8.99999', - 'requests<=2.21.99999', + 'requests<=2.22.99999', 'readerwriterlock<=1.0.9999...
Upgraded versions of dependencies (esp. security fix in requests).
py
diff --git a/nose/test_potential.py b/nose/test_potential.py index <HASH>..<HASH> 100644 --- a/nose/test_potential.py +++ b/nose/test_potential.py @@ -180,6 +180,9 @@ def test_forceAsDeriv_potential(): #Vertical force, if it exists if isinstance(tp,potential.planarPotential) \ or isin...
Excluded KuzmanDiskPotential from vertical derivative of potential test
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -288,7 +288,7 @@ test_irregular_subplots() color_normalize_tests() quant_figure_tests() # ta_tests() -# bestfit() +bestfit() if __name__ == '__main__':
re-enable bestfit test
py
diff --git a/gofedlib/go/apiextractor/extractor.py b/gofedlib/go/apiextractor/extractor.py index <HASH>..<HASH> 100644 --- a/gofedlib/go/apiextractor/extractor.py +++ b/gofedlib/go/apiextractor/extractor.py @@ -28,6 +28,7 @@ class ApiExtractor(object): "--package-path {}".format(self._package_path), ...
Set GOPATH before running goextract
py
diff --git a/dtool_irods/storagebroker.py b/dtool_irods/storagebroker.py index <HASH>..<HASH> 100644 --- a/dtool_irods/storagebroker.py +++ b/dtool_irods/storagebroker.py @@ -255,7 +255,8 @@ class IrodsStorageBroker(object): def _get_size_and_timestamp(self, irods_path): if self._use_cache: - ...
Improve robustness of _get_size_and_timestamp with cache
py
diff --git a/tests/test_betfairstream.py b/tests/test_betfairstream.py index <HASH>..<HASH> 100644 --- a/tests/test_betfairstream.py +++ b/tests/test_betfairstream.py @@ -141,8 +141,9 @@ class BetfairStreamTest(unittest.TestCase): assert self.betfair_stream.datetime_last_received is not None assert se...
mock the stop method as the exception thrown due to trying to close the non-existent socket is masking the SocketError we're expecting
py
diff --git a/icekit/utils/readability/readability.py b/icekit/utils/readability/readability.py index <HASH>..<HASH> 100755 --- a/icekit/utils/readability/readability.py +++ b/icekit/utils/readability/readability.py @@ -2,11 +2,11 @@ import math -from readability_utils import get_char_count -from readability_utils ...
Let's try imports this way
py
diff --git a/src/REST/__init__.py b/src/REST/__init__.py index <HASH>..<HASH> 100644 --- a/src/REST/__init__.py +++ b/src/REST/__init__.py @@ -19,7 +19,8 @@ class REST(Keywords): content_type="application/json", user_agent="Robot Framework RESTinstance", proxies={},...
Add `spec` to library settings
py
diff --git a/blimpy/file_wrapper.py b/blimpy/file_wrapper.py index <HASH>..<HASH> 100644 --- a/blimpy/file_wrapper.py +++ b/blimpy/file_wrapper.py @@ -50,13 +50,13 @@ class Reader(object): # This avoids resetting values if init is True: if t_start is None: - self.t_start = ...
Py3 freaks with None comparisons, making these more robust take 3 Former-commit-id: <I>d7ace<I>cb<I>ce1d6aa4bdadba9bc4ce<I>c<I>
py
diff --git a/ayrton/castt.py b/ayrton/castt.py index <HASH>..<HASH> 100644 --- a/ayrton/castt.py +++ b/ayrton/castt.py @@ -504,3 +504,5 @@ class CrazyASTTransformer (ast.NodeTransformer): node.body= [ p ] return node + + def visit_AsyncWith= visit_With
[+] even more support for new python-<I>'s async.
py
diff --git a/src/_pytest/nodes.py b/src/_pytest/nodes.py index <HASH>..<HASH> 100644 --- a/src/_pytest/nodes.py +++ b/src/_pytest/nodes.py @@ -29,6 +29,7 @@ from _pytest.mark.structures import Mark from _pytest.mark.structures import MarkDecorator from _pytest.mark.structures import NodeKeywords from _pytest.outcome...
Use Path() instead of str for path comparison On Windows specifically is common to have drives diverging just by casing ("C:" vs "c:"), depending on the cwd provided by the user.
py
diff --git a/pyee/__init__.py b/pyee/__init__.py index <HASH>..<HASH> 100644 --- a/pyee/__init__.py +++ b/pyee/__init__.py @@ -17,11 +17,14 @@ class Event_emitter(object): self._events[event] = [] #fire 'new_listener' *before* adding the new listener! - self.emit('new_listener...
Removal of listeners now works when defining through decorator, also made emission of new_listener take in event and function
py
diff --git a/salt/states/user.py b/salt/states/user.py index <HASH>..<HASH> 100644 --- a/salt/states/user.py +++ b/salt/states/user.py @@ -232,7 +232,7 @@ def present(name, specified, Default is ``True``. empty_password - Set to True to enable no password-less login for user, Default is ``False``...
Making the language more clear. Fixes #<I>
py
diff --git a/nat/restClient.py b/nat/restClient.py index <HASH>..<HASH> 100644 --- a/nat/restClient.py +++ b/nat/restClient.py @@ -8,6 +8,8 @@ Created on Sun Jun 5 13:08:43 2016 import requests import json import os +import webbrowser +from bs4 import BeautifulSoup as bs import io from zipfile import ZipFile ...
Impoving the reporting of errors in restClient.py.
py
diff --git a/ailment/analyses/propagator.py b/ailment/analyses/propagator.py index <HASH>..<HASH> 100644 --- a/ailment/analyses/propagator.py +++ b/ailment/analyses/propagator.py @@ -186,9 +186,10 @@ def get_engine(base_engine): false_target is stmt.false_target: pass ...
Propagator: Do not lose extra attributes when copying ConditionalJumps.
py
diff --git a/peyotl/collections/collections_umbrella.py b/peyotl/collections/collections_umbrella.py index <HASH>..<HASH> 100644 --- a/peyotl/collections/collections_umbrella.py +++ b/peyotl/collections/collections_umbrella.py @@ -152,6 +152,8 @@ class _TreeCollectionStore(TypeAwareDocStore): collectio...
Initialize var in case of failure
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- import subprocess - +import os from setuptools import setup, find_packages from setuptools.command.develop import develop from setuptools.command.install import install @@ -32,8 +32,...
fix #<I> (#<I>)
py
diff --git a/backoff.py b/backoff.py index <HASH>..<HASH> 100644 --- a/backoff.py +++ b/backoff.py @@ -103,7 +103,7 @@ import sys # Use module-specific logger with a default null handler. logger = logging.getLogger(__name__) -if sys.version_info < (2, 7, 0): +if sys.version_info < (2, 7, 0): # pragma: no cover ...
Fix <I>% code coverage
py
diff --git a/plenum/cli/cli.py b/plenum/cli/cli.py index <HASH>..<HASH> 100644 --- a/plenum/cli/cli.py +++ b/plenum/cli/cli.py @@ -544,12 +544,8 @@ class Cli: @activeWallet.setter def activeWallet(self, wallet): self._activeWallet = wallet - self.postActiveWalletChange() self.print('A...
refactored wallet setter logic
py
diff --git a/raven/contrib/tornado/__init__.py b/raven/contrib/tornado/__init__.py index <HASH>..<HASH> 100644 --- a/raven/contrib/tornado/__init__.py +++ b/raven/contrib/tornado/__init__.py @@ -127,7 +127,7 @@ class AsyncSentryClient(Client): headers = {} return AsyncHTTPClient().fetch( - ...
Fix: Headers must not be passed as keyword arguments, but as headers
py
diff --git a/account/tests/test_views.py b/account/tests/test_views.py index <HASH>..<HASH> 100644 --- a/account/tests/test_views.py +++ b/account/tests/test_views.py @@ -2,7 +2,7 @@ from django.core.urlresolvers import reverse from django.test.client import RequestFactory from django.utils import unittest -from dj...
added test for SignupView successful post
py
diff --git a/remoto/process.py b/remoto/process.py index <HASH>..<HASH> 100644 --- a/remoto/process.py +++ b/remoto/process.py @@ -94,7 +94,7 @@ def extend_env(conn, arguments): if arguments.get('extend_env'): for key, value in arguments['extend_env'].items(): arguments['env'][key] = value - ...
process: extend_env is not there always, remove it when present
py
diff --git a/dvc/command/repro.py b/dvc/command/repro.py index <HASH>..<HASH> 100644 --- a/dvc/command/repro.py +++ b/dvc/command/repro.py @@ -4,7 +4,6 @@ import copy from dvc.command.run import CmdRun, CommandFile from dvc.logger import Logger from dvc.exceptions import DvcException -from dvc.path.data_item import ...
It is okay if output file does not exist
py
diff --git a/eventsourcing/tests/test_flask.py b/eventsourcing/tests/test_flask.py index <HASH>..<HASH> 100644 --- a/eventsourcing/tests/test_flask.py +++ b/eventsourcing/tests/test_flask.py @@ -104,10 +104,15 @@ class TestFlaskWsgi(TestFlaskApp): # Run uwsgi. if path_to_virtualenv: path_...
Trying to get uwsgi working again on Travis.
py
diff --git a/resolwe/storage/tests/test_manager.py b/resolwe/storage/tests/test_manager.py index <HASH>..<HASH> 100644 --- a/resolwe/storage/tests/test_manager.py +++ b/resolwe/storage/tests/test_manager.py @@ -261,7 +261,7 @@ class DecisionMakerOverrideRuleTest(TestCase): def test_override_process_type(self): ...
Add test for missing colon Change previous test to expose bug when colon was missing at the end of process_type in the connector settings.
py
diff --git a/salt/modules/vsphere.py b/salt/modules/vsphere.py index <HASH>..<HASH> 100644 --- a/salt/modules/vsphere.py +++ b/salt/modules/vsphere.py @@ -210,7 +210,7 @@ def _get_proxy_connection_details(): Returns the connection details of the following proxies: esxi ''' proxytype = get_proxy_type() - ...
Fixed small bug in _get_proxy_connection_details
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( packages=[ 'querybuilder' ], - url="https://github.com/wesokes/django-query-builder", + url="https://github.com/ambitioninc/django-query-builder", description="Django query bui...
Update setup.py Changed the url
py
diff --git a/gwpy/timeseries/core.py b/gwpy/timeseries/core.py index <HASH>..<HASH> 100644 --- a/gwpy/timeseries/core.py +++ b/gwpy/timeseries/core.py @@ -145,20 +145,10 @@ class TimeSeries(Series): self.dx = (1 / units.Quantity(val, units.Hertz)).to(self.xunit) @property - def channel(self): - ...
TimeSeries: fixed type set in span property
py
diff --git a/lint.py b/lint.py index <HASH>..<HASH> 100644 --- a/lint.py +++ b/lint.py @@ -846,6 +846,20 @@ class PyLinter(OptionsManagerMixIn, MessagesHandlerMixIn, ReportsHandlerMixIn, def check_astroid_module(self, astroid, walker, rawcheckers, tokencheckers): """check a module from its astroid repre...
Close the file_stream of the ast node after analysing it. This ensures that we don't leak open fds and that we are well-behavioured for PyPy (previously, the file were closed due to gc).
py
diff --git a/twisted_exiftool/__init__.py b/twisted_exiftool/__init__.py index <HASH>..<HASH> 100644 --- a/twisted_exiftool/__init__.py +++ b/twisted_exiftool/__init__.py @@ -111,7 +111,8 @@ class ExiftoolProtocol(protocol.Protocol): self._stopped = d self.transport.write(b'\n'.join((b'-stay_o...
Do not fail when attempting to loseConnection on protocol which is not connected
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ setup( license='MIT', packages=find_packages(exclude=('tests',)), keywords='neo4j django plugin neomodel', - install_requires=['neomodel>=4.0.2', 'pytz>=2020.1', 'django>=2.2'], + install_re...
bump neomodel to <I> (#<I>)
py
diff --git a/host/pybar/fei4/register.py b/host/pybar/fei4/register.py index <HASH>..<HASH> 100644 --- a/host/pybar/fei4/register.py +++ b/host/pybar/fei4/register.py @@ -12,6 +12,7 @@ import copy import struct import tables as tb import datetime +from contextlib import contextmanager from pybar.analysis.Raw...
ENH: adding with statement for creating / restoring configuration
py
diff --git a/webdriver_manager/driver_cache.py b/webdriver_manager/driver_cache.py index <HASH>..<HASH> 100644 --- a/webdriver_manager/driver_cache.py +++ b/webdriver_manager/driver_cache.py @@ -1,6 +1,7 @@ import datetime import json import os +import sys from webdriver_manager.logger import log from webdriver_...
add support for .wdm local (#<I>)
py
diff --git a/hcam_widgets/hcam.py b/hcam_widgets/hcam.py index <HASH>..<HASH> 100644 --- a/hcam_widgets/hcam.py +++ b/hcam_widgets/hcam.py @@ -685,6 +685,15 @@ class InstPars(tk.LabelFrame): self.expose.config(bg=g.COL['warn']) status = False + # don't allow binning other than 1, 2 in...
don't allow heavy binning with pre or overscan enabled
py
diff --git a/openquake/job/validation.py b/openquake/job/validation.py index <HASH>..<HASH> 100644 --- a/openquake/job/validation.py +++ b/openquake/job/validation.py @@ -100,8 +100,8 @@ def random_seed_is_valid(mdl): def number_of_logic_tree_samples_is_valid(mdl): - if not mdl.number_of_logic_tree_samples > 0:...
job/validation: allow for zero number of logic tree samples
py
diff --git a/f5/common/iapp_parser.py b/f5/common/iapp_parser.py index <HASH>..<HASH> 100644 --- a/f5/common/iapp_parser.py +++ b/f5/common/iapp_parser.py @@ -60,7 +60,7 @@ class IappParser(object): if brace_count is not 0: raise CurlyBraceMismatchException( - 'Curly braces mismat...
Fixing python <I> errors Issues: Issue #<I> Problem: Build uncovered errors when running iapp_parser unit test in python <I> Analysis: Change string.format to use variable replacement with percentage sign. Tests: All tests passing
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -1,6 +1,7 @@ import datetime import six -from reporters_db import REPORTERS, VARIATIONS_ONLY, EDITIONS +from reporters_db import REPORTERS, VARIATIONS_ONLY, EDITIONS, \ + NAMES_TO_EDITIONS from unittest import TestCase ...
feat(variable tests): New variable mapping reporter names to editions
py
diff --git a/tests/unit/auth_test.py b/tests/unit/auth_test.py index <HASH>..<HASH> 100644 --- a/tests/unit/auth_test.py +++ b/tests/unit/auth_test.py @@ -79,6 +79,7 @@ class MasterACLTestCase(integration.ModuleCase): opts['client_acl_blacklist'] = {} opts['master_job_cache'] = '' opts['sign_...
provide con_cache in the opts
py
diff --git a/dingo/core/network/stations.py b/dingo/core/network/stations.py index <HASH>..<HASH> 100644 --- a/dingo/core/network/stations.py +++ b/dingo/core/network/stations.py @@ -15,7 +15,6 @@ class MVStationDingo(StationDingo): def __init__(self, **kwargs): super().__init__(**kwargs) - @property...
use function instead of property decorator since parameters are not allowed in property decorators
py
diff --git a/autograd/numpy/linalg.py b/autograd/numpy/linalg.py index <HASH>..<HASH> 100644 --- a/autograd/numpy/linalg.py +++ b/autograd/numpy/linalg.py @@ -161,7 +161,9 @@ def grad_eig(ans, x): f = 1/(e[..., anp.newaxis, :] - e[..., :, anp.newaxis] + 1.e-20) f -= _diag(f) ut = anp.swapaxes...
change @ to _dot
py
diff --git a/pwkit/ndshow_gtk3.py b/pwkit/ndshow_gtk3.py index <HASH>..<HASH> 100644 --- a/pwkit/ndshow_gtk3.py +++ b/pwkit/ndshow_gtk3.py @@ -629,7 +629,7 @@ class Cycler(Viewer): self.cadence = cadence self.viewport = Viewport() - self.win = Gtk.Window(Gtk.WindowType.TOPLEVEL) + self...
pwkit/ndshow_gtk3.py: fix a few more Gtk deprecation warnings
py
diff --git a/examples/server/tests/templatetags.py b/examples/server/tests/templatetags.py index <HASH>..<HASH> 100644 --- a/examples/server/tests/templatetags.py +++ b/examples/server/tests/templatetags.py @@ -9,6 +9,8 @@ class TemplateTagsTest(TestCase): client = Client(enforce_csrf_checks=True) req...
added dummy functions is_secure and get_host to emulate response object
py
diff --git a/chessboard/tests/test_solver.py b/chessboard/tests/test_solver.py index <HASH>..<HASH> 100644 --- a/chessboard/tests/test_solver.py +++ b/chessboard/tests/test_solver.py @@ -490,6 +490,7 @@ class TestSolverContext(unittest.TestCase): ]) self.assertEquals(solver.result_counter, 8) + @...
Solver still too slow for Travis.
py
diff --git a/esptool.py b/esptool.py index <HASH>..<HASH> 100755 --- a/esptool.py +++ b/esptool.py @@ -205,7 +205,13 @@ class ESPROM: def read_mac(self): mac0 = esp.read_reg(esp.ESP_OTP_MAC0) mac1 = esp.read_reg(esp.ESP_OTP_MAC1) - return (0x18, 0xfe, 0x34, (mac1 >> 8) & 0xff, mac1 & 0xff,...
improved mac address algorithm from Espressif's tool
py
diff --git a/taskw/test/test_datas.py b/taskw/test/test_datas.py index <HASH>..<HASH> 100644 --- a/taskw/test/test_datas.py +++ b/taskw/test/test_datas.py @@ -135,6 +135,7 @@ class _BaseTestDB(object): tasks = self.tw.load_tasks() eq_(len(tasks['pending']), 1) + eq_(tasks['pending'][0]['prior...
Check specifically for this to reduce confusion in test failure output.
py